-
AuthorPosts
-
September 11, 2017 at 12:55 pm #850456
Hello,
I tried to translate the countdown with “hours”, “minutes”, “weeks” etc. within the “Upcoming events”-widget and ALB element into German via Poedit, but these words are not included there. Then I tried via events_countdown.php (here I was able to change the word “Upcoming”“), but no chance to change the times in there as well.
I would love to realize this without any plugin and also all changes to remain save upon update. Is this this possible? Can you help me with this issue? Would be awesome!
Thanks for your help in advance.
Kind regards
SophieSeptember 11, 2017 at 10:14 pm #850693Hey Sophie,
Please use Poedit: http://www.poedit.net/ or http://wordpress.org/extend/plugins/codestyling-localization/ to translate it and save it with the right language identification code (i.e. German users must use de_DE and Poedit will generate a de_DE.po and de_DE.mo file. A list of all languages can be found here: http://codex.wordpress.org/WordPress_in_Your_Language ). You need to upload the mo & po files into the wp-content/themes/enfold/lang/ folder.
If you use a child theme, you have to load the lang file
add_action('after_setup_theme', 'avia_child_lang_setup'); function avia_child_lang_setup() { remove_action('after_setup_theme', 'avia_lang_setup'); $lang = get_stylesheet_directory() . '/lang'; load_theme_textdomain('avia_framework', $lang); }
Best regards,
BasilisSeptember 12, 2017 at 6:46 am #850767Hi Basilis,
thanks for your reply, I have take the Po from Enfold Theme and make translate the points, but they don’t work.
I will translate this http://kriesi.at/themes/enfold-church/ Next Event starts in this are the Plug-in The Event Calander right? And here the Hours Second Minute Days Year and UpcomingDo you have idea why the translate not work as per you manual?
Kind regards
SophieSeptember 12, 2017 at 9:41 pm #851253Hi,
If it is the plugin, you have to translate the plugin files yes.
After translating do you compile also?Best regards,
BasilisSeptember 12, 2017 at 9:54 pm #851258Hi Basilis,
you are right, I needed to compile .mo and .po files and it worked. Thank you :-) ! But what do I do in case of future updates? How can I save my changes? Thank you for your always fast reply, that’s awesome.
Kind regards
SophieSeptember 14, 2017 at 6:57 am #851854Hi,
How can I save my changes?
Please create a backup of the language files in case you update the theme. If you have the “lang” folder in the child theme then you don’t have to worry about anything.
Best regards,
IsmaelSeptember 14, 2017 at 7:27 am #851876Hi Isamel,
yes, I put the lang folder (the above code that Basilis gave me) in the chlld theme. I think, then everything is fine and you can close this out. I thank you – again – for your awesome support :-) !
Kind regards
SophieSeptember 14, 2017 at 3:23 pm #852092Hi Sophie,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
VictoriaSeptember 16, 2017 at 12:43 pm #852859Hi Victoria,
thank you. You can close this out :-) .
Have a great day!
Kind regards
SophieSeptember 18, 2017 at 5:03 am #853201 -
AuthorPosts
- The topic ‘Upcoming events in widget and ALB element translation’ is closed to new replies.