pacemaker
pacemaker copied to clipboard
translate fenced files for zh_cn
translate fenced files for zh_cn
Can one of the admins verify this patch?
test this please
Hi,
Thank you for the additional translations. With previous translations, we figured out that including XML in the translated text causes problems. We solved that with the add_desc() function in lib/common/options.c. To avoid duplicating that effort, the best solution here will be to convert pacemakerd-fenced to use pcmk__format_option_metadata()
.
Thankfully, that is an easy process. The biggest step is to define an array of pcmk__cluster_option_t
(which could be named fencer_options[]). Then all we need to do is call pcmk__format_option_metadata()
with that array, in pacemaker-fenced.c's main() where it handles "metadata", instead of all the printf()'s. See crmd_opts[] and crmd_metadata() in daemons/controld/controld_control.c for an example with translations.
If you do not have time for that, I can take it and get back with you when it is ready.
Hi,
Thank you for the additional translations. With previous translations, we figured out that including XML in the translated text causes problems. We solved that with the add_desc() function in lib/common/options.c. To avoid duplicating that effort, the best solution here will be to convert pacemakerd-fenced to use
pcmk__format_option_metadata()
.Thankfully, that is an easy process. The biggest step is to define an array of
pcmk__cluster_option_t
(which could be named fencer_options[]). Then all we need to do is callpcmk__format_option_metadata()
with that array, in pacemaker-fenced.c's main() where it handles "metadata", instead of all the printf()'s. See crmd_opts[] and crmd_metadata() in daemons/controld/controld_control.c for an example with translations.If you do not have time for that, I can take it and get back with you when it is ready.
OKay , I'll try it.
Maybe try to get rid of that merge commit.
If you closed because of the merge commit you wouldn't necessarily have to. If I screw things up on a branch I usually delete it on my local clone, recreate it and fast-forward-push it to my github-repo. If that was for other reasons please forget my comment ;-)