Viewing 7 replies - 1 through 7 (of 7 total)
  • How to translate the Crowdfunding by Astoundify plugin

    The Crowdfunding by Astoundify plugin provides you a very simple
    method for translating the plugin into your own language by letting
    you create your own translation files and then placing them in an
    upgrade-safe directory. This short guide will show you how to use your
    own translations.

    The first thing you need to do is create a new folder called
    atcf inside of wp-content/languages/. If languages/ doesn’t
    exist, create it as well.

    Once you have created the /wp-content/languages/atcf/ place
    your custom .mo file in that folder. The .mo file must be named as
    follows:

    atcf-pt_COUNTRY.mo

    For example, if your language is German, then the file will be named:

    atcf-pt_DE.mo

    Creating Translation Files

    Translation files must be created for the language you want to use the
    plugin in. By default Crowdfunding by Astoundify plugin comes with 4+
    languages, but if yours isn’t included, you will need to create your
    own. This is easy to do.

    There is a very popular and easy to use program called POEdit that
    provides a simple tool for creating translation files.

    Note: language files placed inside of
    /wp-content/languages/atcf/ take precedence over languages
    included as part of the core plugin, which means that if you place a
    copy of one of the language files that Crowdfunding ships with, your
    custom version will be used instead.

    Thread Starter phanson_tt

    (@phanson_tt)

    hi Adam,
    thanks for your reply
    but after did all the step, my custom laguage still cant display. It’s still display the English.
    I’ve tried many name (my language is Vietnamese)
    atcf-vi_VN.mo
    atcf-vi_VN.po
    atcf-vn_VI.mo
    atcf-pt_VN.mo
    …..
    None of them are work!

    Hi,

    I have the same problem.

    I am using the codestyling localization plugin for translating, it is very cool because it is possible to translate, plugins, themes, and so on in the wordpress admin very easy.
    https://www.ads-software.com/plugins/codestyling-localization/

    I can add a new language, and translate the strings, and save it. Great so far.

    But when i go out of the translation, and go back i cant see the language anymore?

    If i would like to change something in the translation i cant see the language that i have added?

    Thanks in advance

    Thread Starter phanson_tt

    (@phanson_tt)

    Hi Morten_a

    I’ve found the solution for my problem.

    My advide is use Poedit download at https://www.poedit.net/
    it is very easy for you to create or translate language.

    Every theme or plugin have it own language file (if it offer .po .mo file)

    For example in my case:
    my theme have a folder language: domain.com/wp-contents/themes/abc/language
    My plugin have a folder language too: domain.com/wp-contents/plugins/abc/language

    I place the theme language file like this:
    domain.com/wp-contents/themes/abc/language/mythemlanguage-vi_VN.po
    domain.com/wp-contents/themes/abc/language/mythemlanguage-vi_VN.mo

    Then I place the plugin language file like this:
    domain.com/wp-contents/plugins/abc/language/mypluginlanguage-vi_VN.po
    domain.com/wp-contents/plugins/abc/language/mypluginlanguage-vi_VN.mo

    Make sure that the file name in this format: <name>-vi_VN.po and <name>-vi_VN.mo
    name is depend on you, -vi_VN is depend on the main language of your website, in my case language is vietnamese and my country is Vietnam so in shortwrite is -vi_VN. You can use -en_US if you use English.
    And the very importance that the ext name (-en_US) have to be the same of every plugin or theme language.

    Then place this line of code to the wp-config.php
    define('WPLANG', 'vi_VN');
    if you use english so it will be:
    define('WPLANG', 'en_US');

    remember to clear the cache of your site and web browser before refesh.

    That’s it.

    Hi,

    Yes poedit are fine, but codestyling localization, can use google translate api, and this does 80% of the job.

    And yes it works for me, but i cant edit the translation through wordpress admin.

    It would be great with a fix for this.

    The path for the language file i use:
    wp-content/plugins/appthemer-crowdfunding/languages/atcf-da_DK.po

    Where is it possible to submit a translation?

    I’ve got this error message from the codestyling localization plugin:
    Loading Issue: Author is using load_textdomain instead of load_plugin_textdomain function. This may break behavior of WordPress, because some filters and actions won’t be executed anymore. Please contact the Author about that.Textdomain definition: There are problems to find the used textdomain. It has been taken from existing translation files. If it doesn’t work with your install, please contact the Author of this plugin.Textdomain definition: There are problems to find the used textdomain. It has been taken from existing translation files. If it doesn’t work with your install, please contact the Author of this plugin.Textdomain definition: There are problems to find the used textdomain. It has been taken from existing translation files. If it doesn’t work with your install, please contact the Author of this plugin.Textdomain definition: There are problems to find the used textdomain. It has been taken from existing translation files. If it doesn’t work with your install, please contact the Author of this plugin.Textdomain definition: There are problems to find the used textdomain. It has been taken from existing translation files. If it doesn’t work with your install, please contact the Author of this plugin.Textdomain definition: There are problems to find the used textdomain. It has been taken from existing translation files. If it doesn’t work with your install, please contact the Author of this plugin.Textdomain definition: There are problems to find the used textdomain. It has been taken from existing translation files. If it doesn’t work with your install, please contact the Author of this plugin.

    I think this is why it wont work proberly.

    Thread Starter phanson_tt

    (@phanson_tt)

    I think you should place the language file here:
    wp-content/languages/atcf-da_DK.po
    wp-content/languages/atcf-da_DK.mo

    then drop a line of code to wp-config.php

    define('WPLANG', 'da_DK')

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘how to translate this plugin using .pot file’ is closed to new replies.