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

Language support #40

Open
rka opened this issue Jun 13, 2016 · 6 comments
Open

Language support #40

rka opened this issue Jun 13, 2016 · 6 comments
Assignees
Milestone

Comments

@rka
Copy link

rka commented Jun 13, 2016

If its not a huge work maybe there could be a language file so we can have all the visible parts there then its easy to manage in the future.

@depado depado added this to the 1.2 milestone Jun 14, 2016
@depado depado self-assigned this Jun 14, 2016
@depado
Copy link
Owner

depado commented Jun 14, 2016

That wouldn't be too hard I think, except if you want the documentation translated too.

@rka
Copy link
Author

rka commented Jun 14, 2016

Noo noo just the basic stuff like the buttons. Basically the stuff a user can see in "sensitive_mode: true"

@depado
Copy link
Owner

depado commented Jun 14, 2016

Something like :

translation:
    upload_button: "Upload"
    type_button: 
        - "File"
        - "Text"
    restriction_button:
        - "No Restriction"
        - "One Download"
    file_chooser: "Choose a file..."
    text_placeholder: "Paste your text here..."
    summary_template: "Your file will live for {} and will be visible {}. Maximum size : {}"

The only problem there is the lifetime selector. As this will be dynamically generated, I don't know how I could provide a translation system. I'll try to think of something, tell me if my proposal for the configuration file looks good to you :)

@rka
Copy link
Author

rka commented Jun 14, 2016

looks awesome thanks in advance :) Well the lifetime selector is kinda the same as the buttons no? Just have to break it in 2 maybe. And the max size at the and is only in the html.

Your file will live for 1 hour and will be visible only once. Maximum size : 3000MB
A feltöltött fájl 1 óra-ig lesz elérhető egyszeri letöltésre. Maximum feltölthető fájl méret: 3000MB

Part1 <time> Part2 <restriction>. Maximum size: <value>

var sum = "Part 1 " + $("#duration option:selected").text() + "Part 2";

I have no background in coding so sorry if that is totally wrong :)

@depado
Copy link
Owner

depado commented Jun 14, 2016

No what I meant was that, related to #35, the list of available lifetimes will be dynamic. But the translation could be added when declaring the lifetimes available. I'll give some tries on that one. That's planned for 1.2 released, so maybe in a couple weeks.

@rka
Copy link
Author

rka commented Jun 14, 2016

Oh sorry. I get it now. No need to hurry :)

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

No branches or pull requests

2 participants