Skip to content
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

[Question] - hydroTSM - support for multi languages #5

Open
kedziorm opened this issue Nov 7, 2016 · 2 comments
Open

[Question] - hydroTSM - support for multi languages #5

kedziorm opened this issue Nov 7, 2016 · 2 comments

Comments

@kedziorm
Copy link

kedziorm commented Nov 7, 2016

Dear Developers,

thank you for creating such great package as hydroTSM!
I'm really impressed by the possibilites which hydroTSM package provides me.

Unfortunately, it seems that regardless of the selected locale (Sys.setlocale), labels are displayed in English only.

Let me provide an example of two commands (output attached as images):

smry(do_dalszej_analizy,digits = 7)
smry_hydrotsm

hydroplot(do_dalszej_analizy_tis, var.type="Precipitation", var.unit=jednostka, xlab="Czas", ylab="", ptype="ts", main=co,pfreq="dm", stype="default")
hydroplot_hydrotsm

Is there any possibility to replace mentioned (on attached print screens) labels to polish counterparts?
Is it a matter of preparing translation (I can prepare some translations if needed)?

@hzambran
Copy link
Owner

hzambran commented Nov 7, 2016

Dear @kedziorm,

Thank for writing.
You are right: the labels are always shown in English (even if it is not my primary language), because it was the simplest way of implementing the hydroplot function for a broad audience.

I just checked the source code of the function, and to provide a full translation to a different language would require several changes in the code, for every target language. I'm not aware of a way to write a multi-language package, but I'm interested in any suggestion you might have...

@kedziorm
Copy link
Author

kedziorm commented Nov 8, 2016

Dear @hzambran,

thank you for response.
Unfortunately I have no experience in writing multi-language packages for R!
However, I guess that following link contains useful information:
http://stackoverflow.com/questions/29093673/how-to-translate-package-content

Anyway, could you provide me any suggestion for creating plot with polish labels?
Should I fork/copy code and change labels in following part of code?
https://github.com/hzambran/hydroTSM/blob/master/R/smry.R
https://github.com/hzambran/hydroTSM/blob/master/R/hydroplot.R

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants