Browse Source

some modifications

vbracco 16 years ago
parent
commit
fd69f73e66
1 changed files with 6 additions and 13 deletions
  1. 6 13
      gettext.bat

+ 6 - 13
gettext.bat View File

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
 PATH C:\Archivos de programa\poEdit\bin
4
 PATH C:\Archivos de programa\poEdit\bin
7
- 
5
+
8
 for /f %%a in ('dir /b languages') do call :add_strings "%%a"
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
 goto :eof
10
 goto :eof
16
  
11
  
17
 :add_strings
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
 cd languages/%1
15
 cd languages/%1
23
 msgfmt messages.po
16
 msgfmt messages.po
24
 cd ../..
17
 cd ../..