Custom Language Files

You can modify existing translation files or add new language files. But don’t put your files in the plugin directory wp-filebase-pro/languages, otherwise they will be deleted on next plugin update!

This is how you make your translation files surviving updates:

Add this line to your wp-config.php:

define('WPFB_LANG_DIR', 'wp-content/wpfb-lang');

right above

/* That's all, stop editing! Happy blogging. */

Then create the directory wp-content/wpfb-lang and put the .mo files in there. Mind the name pattern:

wpfb-de_DE.mo

You can use template.po as a template for translation. Poedit is a nice gettext editor.

VN:F [1.9.22_1171]
Rating: 1.5/5 (2 votes cast)
Custom Language Files, 1.5 out of 5 based on 2 ratings

5 thoughts on “Custom Language Files

  1. VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

    Hi there, Our web site is in four languages, English, Spanish, Portuguese and German (www.amphibianark.org). I use WP-filebase,and I love it, but I can’t work out how to enable the various .mo files to display the file browser in the selected language (eg. http://www.amphibianark.org/pt/husbandry-documents/ Could you please give me a quick pointer on enabling the various languages?

    Many thanks, Kevin

    1. Fabian says:
      VN:F [1.9.22_1171]
      Rating: 0 (from 0 votes)

      Hi Kevin, something like in your file template should work:
      get_tpl_var('file_display_name'),'your-text-domain'); ?>
      You need to load your tr .mo files manually in your theme function.php for example.

  2. Deniz says:
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

    Hi I want to translate “Showing” “Entries” etc. But I can’t find them in the language file.
    http://dekemhost.net/tema/derin/?page_id=2381

  3. omejaes says:
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

    Hi!guys play here free online yahtzee and enjoy full on entertainment here http://theyahtzee.com there is no need to download and register game lovers can play it on their pc and phones this one is type dice game.Thanks for this one.

  4. raj yadav says:
    VA:F [1.9.22_1171]
    Rating: 0 (from 0 votes)

    Awesome post for a great version https://passwordwindows10.com

Leave a Reply

Your email address will not be published.