|
@@ -1,24 +1,17 @@
|
1
|
|
-dir /a /b /-p /o:gen *.php > sources.txt
|
2
|
|
-cd admin
|
3
|
|
-dir /a /b /-p /o:gen *.php > sources_admin.txt
|
4
|
|
-cd ..
|
|
1
|
+dir /a /b /-p /s /o:gen *.php > sources_php.txt
|
5
|
2
|
|
|
3
|
+PATH C:\Program Files\poEdit\bin
|
6
|
4
|
PATH C:\Archivos de programa\poEdit\bin
|
7
|
|
-
|
|
5
|
+
|
8
|
6
|
for /f %%a in ('dir /b languages') do call :add_strings "%%a"
|
9
|
7
|
|
10
|
|
-cd admin
|
11
|
|
-del sources_admin.txt
|
12
|
|
-cd ..
|
13
|
|
-del sources.txt
|
|
8
|
+del sources_php.txt
|
14
|
9
|
|
15
|
10
|
goto :eof
|
16
|
11
|
|
17
|
12
|
:add_strings
|
18
|
|
-xgettext --keyword=__ --language=PHP --files-from=sources.txt -j --from-code=UTF-8 -d languages/%1/messages
|
19
|
|
-cd admin
|
20
|
|
-xgettext --keyword=__ --language=PHP --files-from=sources_admin.txt -j --from-code=UTF-8 -d ../languages/%1/messages
|
21
|
|
-cd ..
|
|
13
|
+xgettext --keyword=__ --language=PHP --package-name=gelatocms --package-version=1.0 --no-location --no-wrap --files-from=sources_php.txt -j --from-code=UTF-8 -d languages/%1/messages
|
|
14
|
+
|
22
|
15
|
cd languages/%1
|
23
|
16
|
msgfmt messages.po
|
24
|
17
|
cd ../..
|