Forum

Please make sure that you have read the documentation and extensive resources provided on this site before posting your question!

Dynamic Content Gallery Resources

DCG Version 4.0 beta is now available for download and testing. This is a development version and not recommended for live sites. Read more here.

Note that the current stable release of the DCG is version 3.3.5.

Please consider registering
guest

Log In Register

Register | Lost password?
Advanced Search:

— Forum Scope —



— Match —



— Forum Options —




Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 3 characters - maximum search word length is 84 characters

Topic RSS
DCG Localization
Status: fixed
January 9, 2011
10:08 pm
minimus
Guest

Good plugin, I like it! But … DCG localization is impossible without some changes of plugin's codes.

Working copy of localized DCG (ru_RU)

At first. I changed textdomain name to traditional view, from 'Dynamic_Content_Gallery' to 'dynamic-content-gallery'. It's bad idea to have file names with capitalised letters.

At second. In this construction

load_plugin_textdomain(DFCG_DOMAIN, false, dirname(plugin_basename(__FILE__)). '/languages');

dirname returns 'includes/lunguages' becouse file "dfcg-admin-core.php" located in "includes" folder. It's bad path. It means that WP never will find textdomain files. I changed this code to this

load_plugin_textdomain(DFCG_DOMAIN, false, 'dynamic-content-gallery-plugin/languages/');

Do not forget the trailing slash… Wink

At last. I added calling of "dfcg_load_textdomain" function to dfcg-admin-metaboxes.php, dfcg-admin-custom-columns.php and dfcg-widget.php files.
For dfcg-widget.php:

if( is_admin() ) dfcg_load_textdomain();

I hope that you will make the appropriate changes to the plugin code and localization of DСG will be possible. Laugh

January 10, 2011
7:34 pm
Ade
Admin
Forum Posts: 2490
Member Since:
August 25, 2008
Offline

Yes, I'm aware that the loclisation isn't working properly. It will be fixed in the next release.

Dynamic Content Gallery: Have you read the Configuration Guide and FAQ?
Forum Timezone: UTC 1

Most Users Ever Online: 28

Currently Online: theonsale, nloronacele
13 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

johnbroome: 13

sjpeaches: 12

speedyp: 12

CherylMcL: 10

littlemerry: 8

lsnoei: 8

Member Stats:

Guest Posters: 770

Members: 1297

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 7

Topics: 978

Posts: 4293

Newest Members: chargers3, jwhetstone, robert, Mak-Donuts, kilerb, Marian Bamboi

Moderators:

Administrators: Ade (2490)