diff --git a/build.py b/build.py index a6db85ee..d2714e1c 100644 --- a/build.py +++ b/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)) diff --git a/cocoa/base/cs.lproj/DetailsPanel.strings b/cocoa/base/cs.lproj/DetailsPanel.strings index 524427cd..5ee82e40 100755 --- a/cocoa/base/cs.lproj/DetailsPanel.strings +++ b/cocoa/base/cs.lproj/DetailsPanel.strings @@ -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"; diff --git a/cocoa/base/cs.lproj/columns.strings b/cocoa/base/cs.lproj/columns.strings index 31b1f3c2..0cd19e98 100755 --- a/cocoa/base/cs.lproj/columns.strings +++ b/cocoa/base/cs.lproj/columns.strings @@ -20,4 +20,4 @@ "Track Number" = "Číslo stopy"; "Comment" = "Komentář"; -"Dimensions" = "Rozměry"; \ No newline at end of file +"Dimensions" = "Rozměry"; diff --git a/cocoa/base/de.lproj/columns.strings b/cocoa/base/de.lproj/columns.strings index 6104c870..9acf9b90 100644 --- a/cocoa/base/de.lproj/columns.strings +++ b/cocoa/base/de.lproj/columns.strings @@ -20,4 +20,4 @@ "Track Number" = "Stück Nummer"; "Comment" = "Kommentar"; -"Dimensions" = "Dimensionen"; \ No newline at end of file +"Dimensions" = "Dimensionen"; diff --git a/cocoa/base/en.lproj/columns.strings b/cocoa/base/en.lproj/columns.strings index c4607049..002f493f 100644 --- a/cocoa/base/en.lproj/columns.strings +++ b/cocoa/base/en.lproj/columns.strings @@ -20,4 +20,4 @@ "Track Number" = "Track Number"; "Comment" = "Comment"; -"Dimensions" = "Dimensions"; \ No newline at end of file +"Dimensions" = "Dimensions"; diff --git a/cocoa/base/fr.lproj/ProblemDialog.strings b/cocoa/base/fr.lproj/ProblemDialog.strings index 4196c528..dedcc09b 100644 --- a/cocoa/base/fr.lproj/ProblemDialog.strings +++ b/cocoa/base/fr.lproj/ProblemDialog.strings @@ -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"; */ diff --git a/cocoa/base/fr.lproj/ResultWindow.strings b/cocoa/base/fr.lproj/ResultWindow.strings index bd322316..cbc13630 100644 --- a/cocoa/base/fr.lproj/ResultWindow.strings +++ b/cocoa/base/fr.lproj/ResultWindow.strings @@ -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"; diff --git a/cocoa/base/fr.lproj/columns.strings b/cocoa/base/fr.lproj/columns.strings index 25b40c09..84e42524 100644 --- a/cocoa/base/fr.lproj/columns.strings +++ b/cocoa/base/fr.lproj/columns.strings @@ -20,4 +20,4 @@ "Track Number" = "Track"; "Comment" = "Commentaire"; -"Dimensions" = "Dimensions"; \ No newline at end of file +"Dimensions" = "Dimensions"; diff --git a/cocoa/base/zh_CN.lproj/ResultWindow.strings b/cocoa/base/zh_CN.lproj/ResultWindow.strings index 9be62551..38af520e 100644 --- a/cocoa/base/zh_CN.lproj/ResultWindow.strings +++ b/cocoa/base/zh_CN.lproj/ResultWindow.strings @@ -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"; diff --git a/cocoa/base/zh_CN.lproj/columns.strings b/cocoa/base/zh_CN.lproj/columns.strings index 8cdf91aa..4a3e64b9 100644 --- a/cocoa/base/zh_CN.lproj/columns.strings +++ b/cocoa/base/zh_CN.lproj/columns.strings @@ -1,4 +1,4 @@ -"Filename" = "Filename"; +"Filename" = "文件名称"; "Folder" = "文件夹"; "Size" = "大小"; "Size (KB)" = "大小 (KB)"; @@ -20,4 +20,4 @@ "Track Number" = "音轨号"; "Comment" = "注释"; -"Dimensions" = "规格"; \ No newline at end of file +"Dimensions" = "规格";