Skip to content

Commit

Permalink
update cmakelists and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Prevter committed Jan 2, 2025
1 parent 4794a8b commit bde94f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function(setup_translations target)

# Refresh translations on every build
add_custom_command(
TARGET ${target} POST_BUILD
TARGET ${target} PRE_LINK
COMMAND ${CMAKE_COMMAND} -E copy_directory
${TRANSLATIONS_PATH}/translations
${CMAKE_SOURCE_DIR}/resources/translations
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,15 @@ Metadata is stored at the top of the file, and contains the following fields:
```json5
{
"language-name": "English", // The name of the language in English
"language-code": "en_US", // The language code
"language-native": "English", // The name of the language in its native language
"language-native": "English", // The name of the language in its native form.
"language-charset": "default", // The character set of the language
"language-fallback": "en", // The fallback language code (defaults to English)

// ... translations go here
}
```

`language-name`, `language-code` and `language-native` are required and should be self-explanatory.
`language-name`, and `language-native` are required and should be self-explanatory.

`language-charset` is optional and defaults to `default`.
If the language uses a different character set, you can specify it here.
Expand Down

0 comments on commit bde94f7

Please sign in to comment.