Cotral Lab
Cotral Lab

Reputation: 45

CakePHP 3 Internationalization global

I have a little question with the CakePHP internationalisation. (I haven't found my answer in the doc)

My App is in french and english, so i set the default language to fr_FR.

All my variables with __() are in french.

I have the pot file, and in the folder 'Locale', two subfolder : 'fr_FR' and 'en_US'. The two subfolders have a po file.

But must i create the 'fr_FR' folder and po file ? Is it necessary ? My po file for the french has 0 translation.

Thanks ;)

Upvotes: 1

Views: 256

Answers (1)

code-kobold
code-kobold

Reputation: 824

You don't have to provide language files for your default locale. The docs say

The __() function will translate the passed string if a translation is available, or return it unmodified

.

Upvotes: 2

Related Questions