Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
source
OBSW MOD GENERATOR CORE
Commits
935e7dee
Unverified
Commit
935e7dee
authored
May 28, 2021
by
Robin Mueller
Browse files
tiny tweaks
parent
d9beb68b
Changes
1
Hide whitespace changes
Inline
Side-by-side
objects/objects.py
View file @
935e7dee
...
...
@@ -42,7 +42,7 @@ def write_translation_file(filename: str, list_of_entries, date_string_full: str
# second part of translate file. entry[i] contains 32 bit hexadecimal numbers
function
+=
f
"
\t
case
{
entry
[
0
]
}
:
\n\t\t
return
{
entry
[
1
][
0
]
}
_STRING;
\n
"
function
+=
'
\t
default:
\n\t\t
return "UNKNOWN_OBJECT";
\n
'
outputfile
.
write
(
f
"/**
\n
* @brief
\t
Auto-generated object translation file.
\n
"
outputfile
.
write
(
f
"/**
\n
* @brief
\t
Auto-generated object translation file.
\n
"
f
" * @details
\n
"
f
" * Contains
{
len
(
list_of_entries
)
}
translations.
\n
"
f
" * Generated on:
{
date_string_full
}
\n
*/
\n
"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment