-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PB-227: Helptext translations #76
Conversation
aa5abb7
to
1304b40
Compare
the docker image has been changed and no longer contains the babs2 images see https://github.com/geoadmin/infra-kubernetes/commit/df73499cb5235fd65b12ae53c918c5212a5a10bf |
80b262c
to
aaa4528
Compare
1082664
to
98eeefd
Compare
b9d657d
to
475bf57
Compare
475bf57
to
363ded7
Compare
app/helpers/check_functions.py
Outdated
|
||
Args: | ||
icon_set: (IconSet) the icon set in which belongs the icon we want | ||
icon_name: (str) the name of the icon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently only icon_set
is an argument
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tbd @pakb @LukasJoss : Do we want to check the existence of keys in the dict for all languages here, or in the front-end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably front-end could handle the case when a certain language is missing in the returned dict, by simply skipping the mouseover text in that case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We would probably need to define first which languages are required in the first place, but handling it on the front-end is probably fine
@@ -0,0 +1,582 @@ | |||
{ | |||
"001-I-Danneggiamento": { | |||
"de": "Besch\u00e4digung", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is the encoding correct? Will this be correctly handled by the front-end?
json_dic[string_id] = icon_dic | ||
|
||
with open( | ||
destination + '-' + filename[-1] + '-dictionary.json', "w", encoding='utf-8' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, utf-8 should do I guess
app/helpers/description.py
Outdated
def get_icon_description(icon_name='', icon_set=''): | ||
''' | ||
Return json containing the description in all available languages for the specified icon of the | ||
provided icon set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
of the provided icon
, not icon set
app/helpers/description.py
Outdated
|
||
def find_descripton_file(icon_set): | ||
''' | ||
Return file path of description file if it exists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add or False in case it doen't
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot 🚀
Just a few small comments
1acf2ae
to
899ef84
Compare
899ef84
to
e1dfd45
Compare
No description provided.