1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2025-05-08 09:49:51 +00:00

Generate lproj folders from .po files.

This commit is contained in:
Virgil Dupras 2011-11-02 16:47:56 -04:00
parent 30676fd20b
commit 771f26ba0f
10 changed files with 22 additions and 9 deletions

View File

@ -114,6 +114,17 @@ def build_localizations(ui, edition):
loc.compile_all_po(op.join('hscommon', 'locale')) loc.compile_all_po(op.join('hscommon', 'locale'))
loc.merge_locale_dir(op.join('hscommon', 'locale'), 'locale') loc.merge_locale_dir(op.join('hscommon', 'locale'), 'locale')
if ui == 'cocoa': if ui == 'cocoa':
print("Creating lproj folders based on .po files")
enlproj = op.join('cocoa', 'base', 'en.lproj')
for lang in loc.get_langs('locale'):
if lang == 'en':
continue
pofile = op.join('locale', lang, 'LC_MESSAGES', 'ui.po')
dest_lproj = op.join('cocoa', 'base', lang + '.lproj')
loc.po2allxibstrings(pofile, enlproj, dest_lproj)
loc.po2strings(pofile, op.join(enlproj, 'Localizable.strings'), op.join(dest_lproj, 'Localizable.strings'))
pofile = op.join('locale', lang, 'LC_MESSAGES', 'columns.po')
loc.po2strings(pofile, op.join(enlproj, 'columns.strings'), op.join(dest_lproj, 'columns.strings'))
build_all_cocoa_locs('cocoalib') build_all_cocoa_locs('cocoalib')
build_all_cocoa_locs(op.join('cocoa', 'base')) build_all_cocoa_locs(op.join('cocoa', 'base'))
build_all_cocoa_locs(op.join('cocoa', edition)) build_all_cocoa_locs(op.join('cocoa', edition))

View File

@ -6,7 +6,7 @@
"9.headerCell.title" = "Vybráno"; "9.headerCell.title" = "Vybráno";
/* Class = "NSTableColumn"; headerCell.title = "Reference"; ObjectID = "10"; */ /* Class = "NSTableColumn"; headerCell.title = "Reference"; ObjectID = "10"; */
"10.headerCell.title" = "Odkaz"; "10.headerCell.title" = "Referenční";
/* Class = "NSTableColumn"; headerCell.title = "Attribute"; ObjectID = "11"; */ /* Class = "NSTableColumn"; headerCell.title = "Attribute"; ObjectID = "11"; */
"11.headerCell.title" = "Atribut"; "11.headerCell.title" = "Atribut";

View File

@ -3,7 +3,6 @@
"1.title" = "Problèmes!"; "1.title" = "Problèmes!";
/* Class = "NSTextFieldCell"; title = "There were problems processing some (or all) of the files. The cause of these problems are described in the table below. Those files were not removed from your results."; ObjectID = "4"; */ /* Class = "NSTextFieldCell"; title = "There were problems processing some (or all) of the files. The cause of these problems are described in the table below. Those files were not removed from your results."; ObjectID = "4"; */
"4.title" = "There were problems processing some (or all) of the files. The cause of these problems are described in the table below. Those files were not removed from your results.";
"4.title" = "Il y a eu des problèmes lors du traitement de certain (ou tous) fichiers. La cause de ces problèmes est décrite ci-dessous. Ces fichiers n'ont pas été enlevés des résultats."; "4.title" = "Il y a eu des problèmes lors du traitement de certain (ou tous) fichiers. La cause de ces problèmes est décrite ci-dessous. Ces fichiers n'ont pas été enlevés des résultats.";
/* Class = "NSTableColumn"; headerCell.title = "File Path"; ObjectID = "10"; */ /* Class = "NSTableColumn"; headerCell.title = "File Path"; ObjectID = "10"; */

View File

@ -77,6 +77,9 @@
/* Class = "NSSegmentedCell"; 44.ibShadowedLabels[2] = "Delta"; ObjectID = "44"; */ /* Class = "NSSegmentedCell"; 44.ibShadowedLabels[2] = "Delta"; ObjectID = "44"; */
"44.ibShadowedLabels[2]" = "Delta"; "44.ibShadowedLabels[2]" = "Delta";
/* Class = "NSMenu"; title = "Menu"; ObjectID = "67"; */
"67.title" = "Menu";
/* Class = "NSMenuItem"; title = "Add Selected to Ignore List"; ObjectID = "68"; */ /* Class = "NSMenuItem"; title = "Add Selected to Ignore List"; ObjectID = "68"; */
"68.title" = "Ajouter sélectionnés à la liste de fichiers ignorés"; "68.title" = "Ajouter sélectionnés à la liste de fichiers ignorés";

View File

@ -69,7 +69,7 @@
"42.placeholderString" = "Filter"; "42.placeholderString" = "Filter";
/* Class = "NSSegmentedCell"; 44.ibShadowedLabels[0] = "Details"; ObjectID = "44"; */ /* Class = "NSSegmentedCell"; 44.ibShadowedLabels[0] = "Details"; ObjectID = "44"; */
"44.ibShadowedLabels[0]" = "Details"; "44.ibShadowedLabels[0]" = "详细说明";
/* Class = "NSSegmentedCell"; 44.ibShadowedLabels[1] = "Dupes Only"; ObjectID = "44"; */ /* Class = "NSSegmentedCell"; 44.ibShadowedLabels[1] = "Dupes Only"; ObjectID = "44"; */
"44.ibShadowedLabels[1]" = "Dupes Only"; "44.ibShadowedLabels[1]" = "Dupes Only";

View File

@ -1,4 +1,4 @@
"Filename" = "Filename"; "Filename" = "文件名称";
"Folder" = "文件夹"; "Folder" = "文件夹";
"Size" = "大小"; "Size" = "大小";
"Size (KB)" = "大小 (KB)"; "Size (KB)" = "大小 (KB)";