refactor: use metaglot to enable i18n for Windows artifact
This commit is contained in:
Vendored
+72
@@ -0,0 +1,72 @@
|
||||
// Generated by MetaGlot. DO NOT EDIT.
|
||||
// Sources: dist/pineapple-pictures.rc.in.toml, locales/winrc/*.po (CMake placeholders are substituted later).
|
||||
|
||||
#pragma code_page(65001)
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Icon resources (referenced from the registry as "<exe path>,-<id>")
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
101 ICON "@CMAKE_CURRENT_SOURCE_DIR@/dist/embeds/app.ico" // app
|
||||
102 ICON "@CMAKE_CURRENT_SOURCE_DIR@/dist/embeds/bmp.ico" // bmp
|
||||
103 ICON "@CMAKE_CURRENT_SOURCE_DIR@/dist/embeds/gif.ico" // gif
|
||||
104 ICON "@CMAKE_CURRENT_SOURCE_DIR@/dist/embeds/jpg.ico" // jpg
|
||||
105 ICON "@CMAKE_CURRENT_SOURCE_DIR@/dist/embeds/png.ico" // png
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// String tables (file type descriptions, referenced as "@<exe path>,-<id>")
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
{% for lang in languages -%}
|
||||
// {{ lang.name }}
|
||||
LANGUAGE {{ lang.primary }}, {{ lang.sublanguage }}
|
||||
STRINGTABLE
|
||||
BEGIN
|
||||
{%- for i in (1000..1028) -%}
|
||||
{% assign key = i | to_string %}
|
||||
{{ i }} "{{ lang.strings[key] | rc_escape }}"
|
||||
{%- endfor %}
|
||||
END
|
||||
|
||||
{% endfor -%}
|
||||
// ---------------------------------------------------------------------------
|
||||
// Version information (one VERSIONINFO resource per language; Windows picks by resource language)
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
{% for lang in languages -%}
|
||||
LANGUAGE {{ lang.primary }}, {{ lang.sublanguage }}
|
||||
1 VERSIONINFO
|
||||
FILEVERSION @PROJECT_VERSION_MAJOR@, @PROJECT_VERSION_MINOR@, @PROJECT_VERSION_PATCH@, 0
|
||||
PRODUCTVERSION @PROJECT_VERSION_MAJOR@, @PROJECT_VERSION_MINOR@, @PROJECT_VERSION_PATCH@, 0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
#else
|
||||
FILEFLAGS 0x0L
|
||||
#endif
|
||||
FILEOS 0x40004L // VOS_NT_WINDOWS32
|
||||
FILETYPE 0x1L // VFT_APP
|
||||
FILESUBTYPE 0x0L // VFT2_UNKNOWN
|
||||
BEGIN
|
||||
BLOCK "StringFileInfo"
|
||||
BEGIN
|
||||
BLOCK "{{ lang.block_key }}"
|
||||
BEGIN
|
||||
VALUE "Comments", "https://github.com/BLumia/pineapple-pictures"
|
||||
VALUE "CompanyName", "Gary Wang"
|
||||
VALUE "FileDescription", "{{ lang.strings.file_description | rc_escape }}"
|
||||
VALUE "FileVersion", "@PROJECT_VERSION@"
|
||||
VALUE "InternalName", "ppic"
|
||||
VALUE "LegalCopyright", "MIT/Expat License - Copyright (C) 2026 Gary Wang"
|
||||
VALUE "OriginalFilename", "ppic.exe"
|
||||
VALUE "ProductName", "{{ lang.strings.product_name | rc_escape }}"
|
||||
VALUE "ProductVersion", "@PROJECT_VERSION@"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
BEGIN
|
||||
VALUE "Translation", {{ lang.langid }}, {{ lang.code_page }}
|
||||
END
|
||||
END
|
||||
|
||||
{% endfor -%}
|
||||
Reference in New Issue
Block a user