i have just installed DW Focus 1.0.7 using the quickstart, upgraded to the latest wordpress version, upgraded the plugins and i also installed the .mo file for wordpress romanian language support, enabled it in wp-config with define(‘WPLANG’, ‘ro_RO’), and herețs the problem:
If i enable any other theme in the wordpress installation, the dates and most of the standard wordpress links appear correctly written in Romanian language, but if i enable the DW Focus theme the dates (even the month names) and practically everything that’s standard in wordpress appears written in English language.
I combed through all the settings that DW Focus has, i could not find one for language. Did i miss anything? is DW Focus for English language only and i have to translate it?
It must be a language file in /dw_focus/languages/
ok.. found that folder, there are only files for English language in there (en.po, en.mo), i tried opening them in Notepad++ but i didn’t find any place in there where to define the names of the months … looks like the month names are hard-coded as English only and DWFocus is even ignoring the standardized wordpress localized strings that the other themes are using.
.po file opens in the program PoEdit
Edit and save.
.mo file is created, rename the ro_RO.mo and save to ftp
Please read my reply again… the file “en.po” doesn’t even have a place where the month names are defined for the English language… so where would you suggest i change the translation for them for Romanian if even the English language string catalog doesn’t have them defined?… if they are not even defined for English this means the strings are hard-coded and not translatable.
Formatting Date and Time template settings over from WP.
If not translated into Romanian, recommend to change the settings in WP (eg, 5.4. 2014)
Read more
well, changing the date format to show numeric months is a weird work-around and looks ugly too.
One of the points for my editor selecting the DWFocus theme and having me pay for it instead of using a theme from our usual Gavick catalog subscription was the date appearing nicely on every article, with the month spelled out… even the demo page for DW Focus shows the date with the full name of the month http://demo.designwall.com/dw-focus/
If it can’t be fixed otherwise i’ll change the date format to numeric… but i still think this is a weird bug…
Hi Adrian,
Please follow my instruction here to translate the date:
1. Open functions.php file in /wp-content/themes/dw-focus/functions.php
2. Replace following code – line 314
return date( get_option( 'date_format' ), $from );
with:
return get_the_date();
3. Follow this guide to create a translation file
http://codex.wordpress.org/WordPress_in_Your_Language
Hope this helps
Why don’t you change this for the next update?
Please login or Register to submit your answer