mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-10 05:34:36 +00:00
Generate lproj folders from .po files.
This commit is contained in:
parent
30676fd20b
commit
771f26ba0f
11
build.py
11
build.py
@ -114,6 +114,17 @@ def build_localizations(ui, edition):
|
||||
loc.compile_all_po(op.join('hscommon', 'locale'))
|
||||
loc.merge_locale_dir(op.join('hscommon', 'locale'), 'locale')
|
||||
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(op.join('cocoa', 'base'))
|
||||
build_all_cocoa_locs(op.join('cocoa', edition))
|
||||
|
@ -6,7 +6,7 @@
|
||||
"9.headerCell.title" = "Vybráno";
|
||||
|
||||
/* Class = "NSTableColumn"; headerCell.title = "Reference"; ObjectID = "10"; */
|
||||
"10.headerCell.title" = "Odkaz";
|
||||
"10.headerCell.title" = "Referenční";
|
||||
|
||||
/* Class = "NSTableColumn"; headerCell.title = "Attribute"; ObjectID = "11"; */
|
||||
"11.headerCell.title" = "Atribut";
|
||||
|
@ -20,4 +20,4 @@
|
||||
"Track Number" = "Číslo stopy";
|
||||
"Comment" = "Komentář";
|
||||
|
||||
"Dimensions" = "Rozměry";
|
||||
"Dimensions" = "Rozměry";
|
||||
|
@ -20,4 +20,4 @@
|
||||
"Track Number" = "Stück Nummer";
|
||||
"Comment" = "Kommentar";
|
||||
|
||||
"Dimensions" = "Dimensionen";
|
||||
"Dimensions" = "Dimensionen";
|
||||
|
@ -20,4 +20,4 @@
|
||||
"Track Number" = "Track Number";
|
||||
"Comment" = "Comment";
|
||||
|
||||
"Dimensions" = "Dimensions";
|
||||
"Dimensions" = "Dimensions";
|
||||
|
@ -3,7 +3,6 @@
|
||||
"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"; */
|
||||
"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.";
|
||||
|
||||
/* Class = "NSTableColumn"; headerCell.title = "File Path"; ObjectID = "10"; */
|
||||
|
@ -77,6 +77,9 @@
|
||||
/* Class = "NSSegmentedCell"; 44.ibShadowedLabels[2] = "Delta"; ObjectID = "44"; */
|
||||
"44.ibShadowedLabels[2]" = "Delta";
|
||||
|
||||
/* Class = "NSMenu"; title = "Menu"; ObjectID = "67"; */
|
||||
"67.title" = "Menu";
|
||||
|
||||
/* Class = "NSMenuItem"; title = "Add Selected to Ignore List"; ObjectID = "68"; */
|
||||
"68.title" = "Ajouter sélectionnés à la liste de fichiers ignorés";
|
||||
|
||||
|
@ -20,4 +20,4 @@
|
||||
"Track Number" = "Track";
|
||||
"Comment" = "Commentaire";
|
||||
|
||||
"Dimensions" = "Dimensions";
|
||||
"Dimensions" = "Dimensions";
|
||||
|
@ -69,7 +69,7 @@
|
||||
"42.placeholderString" = "Filter";
|
||||
|
||||
/* Class = "NSSegmentedCell"; 44.ibShadowedLabels[0] = "Details"; ObjectID = "44"; */
|
||||
"44.ibShadowedLabels[0]" = "Details";
|
||||
"44.ibShadowedLabels[0]" = "详细说明";
|
||||
|
||||
/* Class = "NSSegmentedCell"; 44.ibShadowedLabels[1] = "Dupes Only"; ObjectID = "44"; */
|
||||
"44.ibShadowedLabels[1]" = "Dupes Only";
|
||||
|
@ -1,4 +1,4 @@
|
||||
"Filename" = "Filename";
|
||||
"Filename" = "文件名称";
|
||||
"Folder" = "文件夹";
|
||||
"Size" = "大小";
|
||||
"Size (KB)" = "大小 (KB)";
|
||||
@ -20,4 +20,4 @@
|
||||
"Track Number" = "音轨号";
|
||||
"Comment" = "注释";
|
||||
|
||||
"Dimensions" = "规格";
|
||||
"Dimensions" = "规格";
|
||||
|
Loading…
x
Reference in New Issue
Block a user