add program translation to Norwegian Bokmål by Roger Knutsen

This commit is contained in:
Moritz Bunkus 2024-04-21 20:59:39 +02:00
parent 5b13f9de0e
commit fa630a1f8b
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85
8 changed files with 17738 additions and 33 deletions

View File

@ -281,6 +281,9 @@ Robert Millan <rmh@aybabtu.com>
Roberto Boriotti <Roberto.Boriotti@canon-europe.com>
* Italian translation
Roger Knutsen <kalimalenia@proton.me>
* Norwegian Bokmål translation
Roman Babiy <babiyr@gmail.com>
* Ukrainian translation

View File

@ -6,6 +6,8 @@
used for Matroska files, `mkvmerge` will generate new random track UIDs
instead of keeping existing track UIDs. This is done automatically when a
Matroska file was created by MakeMKV.
* translations: added a Norwegian Bokmål translation of the programs by Roger
Knutsen (see `AUTHORS`).
## Bug fixes

View File

@ -96,6 +96,7 @@ Page custom showExternalLinks
!insertmacro LANG_LOAD "Japanese"
!insertmacro LANG_LOAD "Korean"
!insertmacro LANG_LOAD "Lithuanian"
!insertmacro LANG_LOAD "Norwegian"
!insertmacro LANG_LOAD "Polish"
!insertmacro LANG_LOAD "Portuguese"
!insertmacro LANG_LOAD "PortugueseBR"

View File

@ -0,0 +1,13 @@
!define LANG "Norwegian"
!insertmacro LANG_STRING STRING_EXT_LINKS_INTRO "If you need a GUI for mkvextract then give these projects a try:"
!insertmacro LANG_STRING STRING_MFF_CONTINUE_ANYWAY "Continue with installation anyway"
!insertmacro LANG_STRING STRING_MFF_MORE_INFORMATION "More information"
!insertmacro LANG_STRING STRING_MFF_NOT_FOUND "Your Windows installation seems to lack Microsoft's 'Media Foundation' framework. This framework is required by MKVToolNix. Please install it and run the MKVToolNix installer again."
!insertmacro LANG_STRING STRING_REMOVE_JOB_FILES_QUESTION "Should job files created by the GUI be deleted as well?"
!insertmacro LANG_STRING STRING_REMOVE_PROGRAM_QUESTION "Do you really want to remove $(^Name) and all of its components?"
!insertmacro LANG_STRING STRING_UNINSTALLED_OK "$(^Name) was successfully uninstalled."
# Local Variables:
# mode: nsis
# End:

17680
po/nb.po Normal file

File diff suppressed because it is too large Load Diff

View File

@ -69,40 +69,41 @@ translation_c::translation_c(std::string iso639_alpha_3_code,
void
translation_c::initialize_available_translations() {
ms_available_translations.clear();
ms_available_translations.emplace_back("eng", "en_US", "en", "english", "English", "English", false, 0x0009, 0x00);
ms_available_translations.emplace_back("eng", "en_US", "en", "english", "English", "English", false, 0x0009, 0x00);
#if defined(HAVE_LIBINTL_H)
//ms_available_translations.emplace_back("are", "ar_AE", "ar", "arabic", "Arabic", "اَلْعَرَبِيَّةُ", false, 0x0001, 0x0e);
ms_available_translations.emplace_back("baq", "eu_ES", "eu", "basque", "Basque", "Euskara", false, 0x002d, 0x00);
ms_available_translations.emplace_back("bel", "be_BY", "be", "belarusian", "Belarusian", "беларуская", false, 0x0023, 0x00);
ms_available_translations.emplace_back("bul", "bg_BG", "bg", "bulgarian", "Bulgarian", "Български", false, 0x0002, 0x01);
ms_available_translations.emplace_back("cat", "ca_ES", "ca", "catalan", "Catalan", "Català", false, 0x0003, 0x00);
ms_available_translations.emplace_back("chi", "zh_CN", "zh_CN", "chinese", "Chinese (Simplified)", "中文 (简体)", true, 0x0004, 0x02);
ms_available_translations.emplace_back("chi", "zh_SG", "zh_SG", "chinese", "Chinese (Singapore & Malaysia)", "中文 (新马简体)", true, 0x1004, 0x04);
ms_available_translations.emplace_back("chi", "zh_TW", "zh_TW", "chinese", "Chinese (Traditional)", "中文 (繁體)", true, 0x7C04, 0x01);
ms_available_translations.emplace_back("cze", "cs_CZ", "cs", "czech", "Czech", "Čeština", false, 0x0005, 0x00);
ms_available_translations.emplace_back("dut", "nl_NL", "nl", "dutch", "Dutch", "Nederlands", false, 0x0013, 0x00);
ms_available_translations.emplace_back("fre", "fr_FR", "fr", "french", "French", "Français", false, 0x000c, 0x00);
ms_available_translations.emplace_back("ger", "de_DE", "de", "german", "German", "Deutsch", false, 0x0007, 0x00);
//ms_available_translations.emplace_back("hin", "hi_IN", "hi_IN", "hindi", "Hindi", "हिन्दी", false, 0x0039, 0x00);
//ms_available_translations.emplace_back("hrv", "hr_HR", "hr", "croatian", "Croatian", "Hrvatski", false, 0x001a, 0x00);
//ms_available_translations.emplace_back("hun", "hu_HU", "hu", "hungarian", "Hungarian", "Magyar", false, 0x000e, 0x00);
ms_available_translations.emplace_back("ita", "it_IT", "it", "italian", "Italian", "Italiano", false, 0x0010, 0x00);
ms_available_translations.emplace_back("jpn", "ja_JP", "ja", "japanese", "Japanese", "日本語", true, 0x0011, 0x00);
ms_available_translations.emplace_back("kor", "ko_KR", "ko", "korean", "Korean", "한국어/조선말", true, 0x0012, 0x01);
ms_available_translations.emplace_back("lit", "lt_LT", "lt", "lithuanian", "Lithuanian", "Lietuvių", false, 0x0027, 0x00);
//ms_available_translations.emplace_back("per", "fa_IR", "fa", "persian", "Persian", "فارسی", false, 0x0029, 0x00);
ms_available_translations.emplace_back("pol", "pl_PL", "pl", "polish", "Polish", "Polski", false, 0x0015, 0x00);
ms_available_translations.emplace_back("por", "pt_BR", "pt_BR", "portuguese", "Portuguese (Brazil)", "Português do Brasil", false, 0x0016, 0x01);
ms_available_translations.emplace_back("por", "pt_PT", "pt", "portuguese", "Portuguese", "Português", false, 0x0016, 0x02);
ms_available_translations.emplace_back("rum", "ro_RO", "ro", "romanian", "Romanian", "Română", false, 0x0018, 0x00);
ms_available_translations.emplace_back("rus", "ru_RU", "ru", "russian", "Russian", "Русский", false, 0x0019, 0x00);
ms_available_translations.emplace_back("spa", "es_ES", "es", "spanish", "Spanish", "Español", false, 0x000a, 0x00);
ms_available_translations.emplace_back("srp", "sr_RS", "sr_RS", "serbian", "Serbian Cyrillic", "Српски", false, 0x001a, 0x03);
ms_available_translations.emplace_back("srp", "sr_RS@latin", "sr_RS@latin", "serbian", "Serbian Latin", "Srpski", false, 0x001a, 0x02);
ms_available_translations.emplace_back("swe", "sv_SE", "sv", "swedish", "Swedish", "Svenska", false, 0x001d, 0x01);
ms_available_translations.emplace_back("tur", "tr_TR", "tr", "turkish", "Turkish", "Türkçe", false, 0x001f, 0x00);
ms_available_translations.emplace_back("ukr", "uk_UA", "uk", "ukrainian", "Ukrainian", "Українська", false, 0x0022, 0x00);
//ms_available_translations.emplace_back("vie", "vi_VN", "vi", "vietnamese", "Vietnamese", "Tiếng Việt", false, 0x002a, 0x00);
//ms_available_translations.emplace_back("are", "ar_AE", "ar", "arabic", "Arabic", "اَلْعَرَبِيَّةُ", false, 0x0001, 0x0e);
ms_available_translations.emplace_back("baq", "eu_ES", "eu", "basque", "Basque", "Euskara", false, 0x002d, 0x00);
ms_available_translations.emplace_back("bel", "be_BY", "be", "belarusian", "Belarusian", "беларуская", false, 0x0023, 0x00);
ms_available_translations.emplace_back("bul", "bg_BG", "bg", "bulgarian", "Bulgarian", "Български", false, 0x0002, 0x01);
ms_available_translations.emplace_back("cat", "ca_ES", "ca", "catalan", "Catalan", "Català", false, 0x0003, 0x00);
ms_available_translations.emplace_back("chi", "zh_CN", "zh_CN", "chinese", "Chinese (Simplified)", "中文 (简体)", true, 0x0004, 0x02);
ms_available_translations.emplace_back("chi", "zh_SG", "zh_SG", "chinese", "Chinese (Singapore & Malaysia)", "中文 (新马简体)", true, 0x1004, 0x04);
ms_available_translations.emplace_back("chi", "zh_TW", "zh_TW", "chinese", "Chinese (Traditional)", "中文 (繁體)", true, 0x7C04, 0x01);
ms_available_translations.emplace_back("cze", "cs_CZ", "cs", "czech", "Czech", "Čeština", false, 0x0005, 0x00);
ms_available_translations.emplace_back("dut", "nl_NL", "nl", "dutch", "Dutch", "Nederlands", false, 0x0013, 0x00);
ms_available_translations.emplace_back("fre", "fr_FR", "fr", "french", "French", "Français", false, 0x000c, 0x00);
ms_available_translations.emplace_back("ger", "de_DE", "de", "german", "German", "Deutsch", false, 0x0007, 0x00);
//ms_available_translations.emplace_back("hin", "hi_IN", "hi_IN", "hindi", "Hindi", "हिन्दी", false, 0x0039, 0x00);
//ms_available_translations.emplace_back("hrv", "hr_HR", "hr", "croatian", "Croatian", "Hrvatski", false, 0x001a, 0x00);
//ms_available_translations.emplace_back("hun", "hu_HU", "hu", "hungarian", "Hungarian", "Magyar", false, 0x000e, 0x00);
ms_available_translations.emplace_back("ita", "it_IT", "it", "italian", "Italian", "Italiano", false, 0x0010, 0x00);
ms_available_translations.emplace_back("jpn", "ja_JP", "ja", "japanese", "Japanese", "日本語", true, 0x0011, 0x00);
ms_available_translations.emplace_back("kor", "ko_KR", "ko", "korean", "Korean", "한국어/조선말", true, 0x0012, 0x01);
ms_available_translations.emplace_back("lit", "lt_LT", "lt", "lithuanian", "Lithuanian", "Lietuvių", false, 0x0027, 0x00);
ms_available_translations.emplace_back("nor", "nb_NO", "nb", "norwegian", "Norwegian", "Norsk Bokmål", false, 0x0027, 0x00);
//ms_available_translations.emplace_back("per", "fa_IR", "fa", "persian", "Persian", "فارسی", false, 0x0029, 0x00);
ms_available_translations.emplace_back("pol", "pl_PL", "pl", "polish", "Polish", "Polski", false, 0x0015, 0x00);
ms_available_translations.emplace_back("por", "pt_BR", "pt_BR", "portuguese", "Portuguese (Brazil)", "Português do Brasil", false, 0x0016, 0x01);
ms_available_translations.emplace_back("por", "pt_PT", "pt", "portuguese", "Portuguese", "Português", false, 0x0016, 0x02);
ms_available_translations.emplace_back("rum", "ro_RO", "ro", "romanian", "Romanian", "Română", false, 0x0018, 0x00);
ms_available_translations.emplace_back("rus", "ru_RU", "ru", "russian", "Russian", "Русский", false, 0x0019, 0x00);
ms_available_translations.emplace_back("spa", "es_ES", "es", "spanish", "Spanish", "Español", false, 0x000a, 0x00);
ms_available_translations.emplace_back("srp", "sr_RS", "sr_RS", "serbian", "Serbian Cyrillic", "Српски", false, 0x001a, 0x03);
ms_available_translations.emplace_back("srp", "sr_RS@latin", "sr_RS@latin", "serbian", "Serbian Latin", "Srpski", false, 0x001a, 0x02);
ms_available_translations.emplace_back("swe", "sv_SE", "sv", "swedish", "Swedish", "Svenska", false, 0x001d, 0x01);
ms_available_translations.emplace_back("tur", "tr_TR", "tr", "turkish", "Turkish", "Türkçe", false, 0x001f, 0x00);
ms_available_translations.emplace_back("ukr", "uk_UA", "uk", "ukrainian", "Ukrainian", "Українська", false, 0x0022, 0x00);
//ms_available_translations.emplace_back("vie", "vi_VN", "vi", "vietnamese", "Vietnamese", "Tiếng Việt", false, 0x002a, 0x00);
#endif
ms_active_translation_idx = 0;

View File

@ -610,3 +610,4 @@ T_0762dovi_combining_bl_and_el:880014a766cf6b5929cf180bea71d046-2eeed24f6b3e3f2d
T_0763vp9_alpha_channel_data:ac329c9d810d9b19fb3ffcde6f12af2a-OK:passed:20231203-190856:0.059109676
T_0764ui_locale_be_BY:a44c54eadfb4c8fbdc104b75aa1de1c1-72b98d331b58a0f95e10159fca191b52:passed:20240120-191944:0.043782405
T_0765ffmpeg_metadata_chapters:f16630c4019413c98b75b959a5697391-6b2b843310e80367b5fe5aaa8a5d51c4:passed:20240310-145016:0.047790171
T_0766ui_locale_nb_NO:6e0054bcf8d381306adc9d4d212d1f6a-5a0be94aab291615f8ebd47f887e6eba:passed:20240422-215240:0.044197325

View File

@ -0,0 +1,4 @@
#!/usr/bin/ruby -w
# T_766ui_locale_nb_NO
test_ui_locale "nb_NO"