Translations for Formidable

Permalink Browser Info Environment
If some cases you want to translate the values for some fields. For example the address-field. In USA it's called Province/State, but in the UK it's called Counties. The best solution for this is to use the default language handler of Concrete5. To do this you have to create a languagefile for the specific language you are using. If the languagefile is created you can upload this in the folder /languages/. Then go to the System and Settings page in the Dashboard and change the default language of your C5 website to the language you just added. This way the form field will be translated. To help you on your way we created a number of different versions for Formidable. You can download it at:http://www.concrete5-addons.nl/addons/formidable/languages/...

For the date element you could use a language-file but you don't need to. When you are using the datepicker you can check the "advanced"-checkbox. This way you can easily add your own values to the datepicker.

For example:
dayNamesMin:[ "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" ], 
dayNamesShort:[ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" ], 
dayNames:[ "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" ], 
monthNames:[ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ] 
monthNamesShort: [ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]

Type: Discussion
Status: New
DeWebmakers
View Replies: View Best Answer
hissy replied on at Permalink Reply
hissy
There are some additional translations for Ajax upload field.

formidable/libraries/3rdparty/ajaxupload/js/ajaxupload.js
//translations for STRINGS in array for each language
   var I18N = {
         'it_IT':[
            'Aggiungi file',
            'Inizia caricamento',
            'Rimuvi tutti',
            'Chiudi',
            'Seleziona',
            'Anteprima',
            'Rimuovi file',
            'Bytes',
            'KB',
            'MB',
...


I translated these messages in Ajaxupload.js into Japanese.

'ja':[
   'ファイルを追加',
   'アップロードを開始',
   '全てを削除',
   '閉じる',
   'ファイルを選択',
   'プレビュー',
   'ファイルを削除',
   'バイト',
   'KB',
   'MB',
   'GB',
   'アップロードに失敗しました',
   '全てのファイルをアップロード',
   'ファイルを選択またはドラッグ&ドロップ',
DeWebmakers replied on at Permalink Reply
DeWebmakers
Thanks! Added this to the next update....
Great!
ahein624 replied on at Permalink Reply 1 Attachment
ahein624
I have installed the languages and my site is still displaying Province and Postal Code. I need it to say State & Zip Code.

I have modified the PO file to reflect this and still nothing has changed.

Amy I missing something?
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi,

I see you are trying to change the default en_US language. In many sites I've noticed that en_US translations don't seem to be overwritten the default en_US language. There are 2 thing you can do...

1.
Go the the form in the dasboard and open the address-element. Change the format by selecting or inserting one yourself. See if this works for you.

2.
Change the source-language of your .po file to en_GB. Then upload the into your /language/en_GB directory and select as default language English. This should work also.

Please let me know if it works!

Best,

Corretje
hissy replied on at Permalink Best Answer Reply
hissy
How about define ENABLE_TRANSLATE_LOCALE_EN_US in config/site.php ?

define('ENABLE_TRANSLATE_LOCALE_EN_US',true);
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi Hissy,

Thank you! Didn't know that one... :)
ahein624 replied on at Permalink Reply
ahein624
When I made the change, it threw an error referencing the ZEND library.

I made the en_gb changed and that worked just fine.

Thanks!

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.