Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #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
    Sophie

    #850693

    Hey 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,
    Basilis

    #850767

    Hi 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 Upcoming

    Do you have idea why the translate not work as per you manual?

    Kind regards
    Sophie

    #851253

    Hi,

    If it is the plugin, you have to translate the plugin files yes.
    After translating do you compile also?

    Best regards,
    Basilis

    #851258

    Hi 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
    Sophie

    #851854

    Hi,

    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,
    Ismael

    #851876

    Hi 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
    Sophie

    #852092

    Hi Sophie,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #852859

    Hi Victoria,

    thank you. You can close this out :-) .

    Have a great day!

    Kind regards
    Sophie

    #853201

    Hi Sophie,

    Thanks for letting us know. Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Upcoming events in widget and ALB element translation’ is closed to new replies.