Change #266117
| Category | texinfo |
| Changed by | Patrice Dumas <pertusus@free.fr> |
| Changed at | Sat 02 May 2026 10:48:21 |
| Repository | https://git.savannah.gnu.org/git/texinfo.git |
| Project | texinfo |
| Branch | master |
| Revision | 5c2da29d340527d0638dadbaa59699e26f3ed5d2 |
Comments
object-based interface for format_translate_message lang info argument * tta/perl/Texinfo/Translations.pm (get_lang_info_xpg_locale): rename get_lang_info_xdg_locale as get_lang_info_xpg_locale. Update callers. * tta/perl/Texinfo/Convert/HTML.pm (Texinfo::Convert::HTML::Language) (new, bcp47_locale, xpg_locale): new package turning lang_info to a blessed reference, with two accessors xpg_locale and bcp47_locale. * tta/perl/Texinfo/Convert/HTML.pm ($unknown_lang_info) (_html_cache_translate_string): call Texinfo::Convert::HTML::Language::new on the lang_info argument of format_translate_message. * tta/C/convert/call_html_perl_function.c (call_formatting_function_format_translate_message): bless lang_info argument of format_translate_message into the Texinfo::Convert::HTML::Language class. * tta/perl/t/init/translated_strings_customization.pm (%translations) (_texi2any_tests_format_translate_message), tta/perl/t/init_files_tests.t (customize_translations): use bcp47 locale name, add test of language with country code.
Changed files
- ChangeLog
- tta/C/convert/call_html_perl_function.c
- tta/perl/Texinfo/Convert/HTML.pm
- tta/perl/Texinfo/Translations.pm
- tta/perl/init/documentation_examples.pm
- tta/perl/t/init/css_in_node_redirection_page.pm
- tta/perl/t/init/special_element_customization.pm
- tta/perl/t/init/translated_strings_customization.pm
- tta/perl/t/init/translation_in_parser_in_translation.pm
- tta/perl/t/init_files_tests.t
- tta/perl/t/results/init_files_tests/customize_translations.pl
- tta/perl/t/results/init_files_tests/customize_translations/res_html/Chapter-de.html
- tta/perl/t/results/init_files_tests/customize_translations/res_html/Last-chapter.html
- tta/perl/t/results/init_files_tests/customize_translations/res_html/index.html