To create a default file for CakePHP 2.3 i18n, on Windows I created a bat file similar to this.
CD F:\mywork\app\View
F:\mywork\lib\Cake\Console\cake.bat i18n extract
But I get this error:
Your database configuration was not found. Take a moment to create one.
Database Configuration:
Name:
[default] >
But inside the file app\Config\database.php, I have database configurations and they work well. Therefore, I removed the extract argument.
I created a new bat file similar to this.
CD F:\mywork\app\View
F:\mywork\lib\Cake\Console\cake.bat i18n
When I run the bat file, I get the following:
[E]xtract POT file from sources
[I]nitialize i18n database table
[H]elp
[Q]uit
What would you like to do? (E/I/H/Q)
I choose E . I get the following:
Current paths: None
What is the path you would like to extract?
[Q]uit [D]one
[F:\mywork\app\View\] >
I press Enter . I get the following:
Current paths: F:\mywork\app\View\
What is the path you would like to extract?
[Q]uit [D]one
[D] >
I press Enter . I get the following:
Would you like to extract the messages from the CakePHP core? (y/n)
[n] >
I press Enter . I get the following:
What is the path you would like to output?
[Q]uit
[F:\mywork\app\View\Locale] >
I put it: F:\mywork\app\Locale\eng\LC_MESSAGES. How do I get this:
Would you like to merge all domains strings into the default.pot file? (y/n)
[n] >
I press Enter . the cake begins to process all View files. Creates a pot file. Then I get the following:
[E]xtract POT file from sources
[I]nitialize i18n database table
[H]elp
[Q]uit
What would you like to do? (E/I/H/Q)
Q .
? ?