GithubHelp home page GithubHelp logo

Comments (41)

softwarerero avatar softwarerero commented on May 20, 2024 2

v1.3.5 is out

from meteor-accounts-t9n.

tdbs avatar tdbs commented on May 20, 2024

Cloud you explain why you are closing this?

from meteor-accounts-t9n.

softwarerero avatar softwarerero commented on May 20, 2024

I have no idea what you are talking about, you did not even specify a file.

from meteor-accounts-t9n.

tdbs avatar tdbs commented on May 20, 2024

You could just ask.

The reason i didn't specify a file it's because it's a problem with all of them.
These messages are not being translated into any language.

Steps to reproduce: Register an account and you will see: 'Successful Registration! Please check your email and follow the instructions.' (probably need to have verify email turned on). And then try loggin in without verifying the account to see: 'Please verify your email first. Check the email and follow the link!'.

from meteor-accounts-t9n.

softwarerero avatar softwarerero commented on May 20, 2024

I see. I guess these strings have been introduced after the project was started in February 2014. Sorry for closing this to quick.

from meteor-accounts-t9n.

juliomac avatar juliomac commented on May 20, 2024

Allow me to add those to this list of untranslated Strings. I can't seem to find them in any file. I can only confirm they are not being translated at least for Portuguese and Spanish.

captura de tela 2015-07-12 17 12 37

I could solve two of them with the following mapping. Phone is not shown in the picture, but it appears on placeholder when we add "tel" input type.

However I can't seem to get the "Minimum required length" to work. I tried with and without ":".

T9n.map('pt', {
Phone: 'Telefone',
'Invalid email': 'Email inválido',
'Minimum required length': 'Tamanho mínimo'
});

from meteor-accounts-t9n.

MartinBucko avatar MartinBucko commented on May 20, 2024

+1 same here.. please reopen issue

I try to remap text fields to my language translation file:

AccountsTemplates.configure
    texts:
        button:
            resendVerificationEmail: "resendVerificationEmail"
        errors:
            captchaVerification: "error.captchaVerification"
            validationErrors: "validationErrors"
            verifyEmailFirst: "info.verificationEmailSent"
        info:
            pwdSet: "info.pwdSet"
            signUpVerifyEmail: 'info.signUpVerifyEmail'
            verificationEmailSent: 'info.verificationEmailSent'
        title:
            resendVerificationEmail: "resendVerificationEmailTitle"
            verifyEmail: "verifyEmail"

        maxAllowedLength: "maxAllowedLength"
        minRequiredLength: "minRequiredLength"
        requiredField: "requiredField"
        resendVerificationEmailLink_link: "resendVerificationEmailLink"
        resendVerificationEmailLink_pre: "resendVerificationEmailLinkPre"

With most mapped strings i was successful but some not. Here is strings impossible to translate:


        maxAllowedLength: "maxAllowedLength"
        minRequiredLength: "minRequiredLength"
        requiredField: "requiredField"

and plus "Invalid Email" on Registration form Email field.

Any idea how to fix? Maybe this issue is more close to accounts-core package?

Thanks

from meteor-accounts-t9n.

softwarerero avatar softwarerero commented on May 20, 2024

@MartinBucko: I see no reason why a text cannot be translated, but in your examples the key matches the value, so you will never any effect.

@AnyBody: If anybody finds an untranslated string please add it to the section of the corresponding package at least in the English translation, which is the blue pause for everything else.

from meteor-accounts-t9n.

gVolop avatar gVolop commented on May 20, 2024

what about the message that is appear on first login through the verified email link ?

screen shot 2015-12-23 at 2 11 28 pm

how can i make it with translate?

from meteor-accounts-t9n.

derwaldgeist avatar derwaldgeist commented on May 20, 2024

+1 I'm also puzzled because some of the texts appear in English in a German form. For instance, if I do not enter something into a required field, I'm getting a message like this: "Benutzername: Required Field". Any idea how I could workaround this?

from meteor-accounts-t9n.

softwarerero avatar softwarerero commented on May 20, 2024

@derwaldgeist: I don't see a translation that includes the string "Required Field". Where does it come from?

from meteor-accounts-t9n.

derwaldgeist avatar derwaldgeist commented on May 20, 2024

I don't know where it comes from, but it appears on the signup page of the useraccounts package if you don't enter any values into the fields. Maybe it's baked into Meteor's standard Account packages? useraccounts only refers to t9n for translations, so I don't think they added it. And I definitely did not add this text either.

It would help if this text could be at least added manually. I tried to do a t9n.map() for both EN and DE, but this did not work. It worked for other texts, but not for the requiredField key. @MartinBucko seemed to have the same problem.

from meteor-accounts-t9n.

softwarerero avatar softwarerero commented on May 20, 2024

Is your code online? I can't help you without understanding your problem. If you do a full text search with e.g. grep you should see where this comes from. I'm pretty sure it does not come from t9n, if it's missing fell free to add it.

from meteor-accounts-t9n.

derwaldgeist avatar derwaldgeist commented on May 20, 2024

Here's the file it comes from:
https://github.com/meteor-useraccounts/core/blob/master/lib/core.js#L315

from meteor-accounts-t9n.

softwarerero avatar softwarerero commented on May 20, 2024

Cool. Do you want to add a translation?

from meteor-accounts-t9n.

derwaldgeist avatar derwaldgeist commented on May 20, 2024

Yes, no problem. Shall I create a PR for that? Not sure if I will make it right, but I will try my best :-)

from meteor-accounts-t9n.

gVolop avatar gVolop commented on May 20, 2024

i don't understood. requiredField translated excellent with T9!!

var pt = {
    "Required Field" : "Campo Obrigatório"
    }
T9n.map('pt', pt);

T9n.setLanguage('pt')

from meteor-accounts-t9n.

derwaldgeist avatar derwaldgeist commented on May 20, 2024

Strange. This did not work for me.

EDIT: I now saw that you are using "Required Field" instead of "requiredField" as the key. And indeed, this works! Although it is strange, I am glad to have this workaround now. Thanks @gVolop.

from meteor-accounts-t9n.

gVolop avatar gVolop commented on May 20, 2024

when useraccount form is opened in your browser, please try write it in console

var pt = {
    "Required Field" : "Campo Obrigatório"
    }
T9n.map('pt', pt);
T9n.setLanguage('pt')

from meteor-accounts-t9n.

derwaldgeist avatar derwaldgeist commented on May 20, 2024

Yes, it works with that key. Thanks.

from meteor-accounts-t9n.

gVolop avatar gVolop commented on May 20, 2024

ok, so all that you need it write it in client in true place,
make a map on file in the lib folder, and changes language like here:

Meteor.startup(function(){
    if(Meteor.isClient){
        T9n.setLanguage('pt');
    }
});

Good luck!

from meteor-accounts-t9n.

softwarerero avatar softwarerero commented on May 20, 2024

@derwaldgeist, @gVolop: If you find untranslated strings in standard libraries you can simple send a pull request to add them. This way it works for everybody out of the box, exactly this is what this issue is about. Thanks @gVolop for the explanation.

from meteor-accounts-t9n.

gVolop avatar gVolop commented on May 20, 2024

yes, i sent a request, but how can i know when it's handled
this request will be updated?

from meteor-accounts-t9n.

softwarerero avatar softwarerero commented on May 20, 2024

@gVolop: Can you point me to the PR? I don't see it.

from meteor-accounts-t9n.

gVolop avatar gVolop commented on May 20, 2024

#105 (comment)

from meteor-accounts-t9n.

softwarerero avatar softwarerero commented on May 20, 2024

Can you explain this? I do not understand your question.

from meteor-accounts-t9n.

gVolop avatar gVolop commented on May 20, 2024

T9 is translation package for useraccount ?
it missed the text that appear on the dialog that opened after first login through verification-email link (the above dialog image)

from meteor-accounts-t9n.

softwarerero avatar softwarerero commented on May 20, 2024

@gVolop: The idea is to provide translations for common meteor packages like useraccount out of the box. But no one person can provide those translations for all 30+ translations. So please, if you find a missing key provide it and do not just report it, this cannot work. I, for example, do not speak Portuguese.

from meteor-accounts-t9n.

gVolop avatar gVolop commented on May 20, 2024

@softwarerero u r right. it's un-possible to control all this by one person.
but i mean to option to mapping this keys, like as 'Required Field' mapping. not embeding translation for each language.
and i really dont find the above situation in useraccount texts, maybe the dialog generated by another package? maybe account-password? I will try to check it

from meteor-accounts-t9n.

 avatar commented on May 20, 2024

Sorry, made some erroneous PR. Last one should be good. My apologies.

from meteor-accounts-t9n.

 avatar commented on May 20, 2024

I have updated the italian file with suggested changes. Now I have one question that maybe require a more general discussion:
Can you hint me for "Maximum allowed length" and "Minimum required length" localization?

Adding translation for the "maxAllowedLength" "minRequiredLength" variables:
maxAllowedLengt: "Lunghezza massima consentita"
minRequiredLength: "Lunghezza minima consentita"
doesn't work.

Adding localization for the strings:
"Maximum allowed length": "Lunghezza massima consentita"
"Minimum required length": "Lunghezza minima consentita"
doesn't work either.

Adding translation for the exact strings rendered in HTML
"Maximum allowed length: 6": "Lunghezza massima consentita: 6"
"Minimum required length: 6": "Lunghezza minima richiesta: 6"
works but it's fixed, so it's not good and only a temporary solution.

For what I've seen those variables are used from "Field.prototype.validate" function inside meteor-useraccounts/core/lib/field.js at line 253 and at line 261 in conjunction with "minLength" and "maxLength" variables.

I've tried to localize the resulting error strings this way:
"Maximum allowed length: @{maxLength}": "Lunghezza massima consentita: @{maxLength}"
"Minimum required length: @{minLength}": "Lunghezza minima richiesta: @{minLength}"
without any success.

Does any of you have any hint on how to localize that kind of concatenated strings.
Thanks in advance.

from meteor-accounts-t9n.

softwarerero avatar softwarerero commented on May 20, 2024

The easiest thing would be to have a translation like AccountsTemplates.texts.minRequiredLength = "Maximum allowed length: @{minLength}". Then you could call T9n.get('AccountsTemplates.texts.minRequiredLength', true, {minLength: 6}). Maybe @splendido can tell if that makes sense and where AccountsTemplates is defined so you can provide a PR.

from meteor-accounts-t9n.

llvasconcellos avatar llvasconcellos commented on May 20, 2024

@softwarerero I saw you merged my PR. Will you update atmospherejs.com with this new version?

from meteor-accounts-t9n.

tuxyvarman avatar tuxyvarman commented on May 20, 2024

Hi everyone,

I use the release 1.3.11 but the key "Required Field" is missing for the language Khmer and Chinese.
How can I contribute ? Or someone could do something ?

Sincerly

from meteor-accounts-t9n.

softwarerero avatar softwarerero commented on May 20, 2024

Hi, if you know how to do a pull request on GitHub just go ahead. If not you can just add the translations to the files and attach those files to this or a new ticket. Then I will be able to integrate it.

from meteor-accounts-t9n.

tuxyvarman avatar tuxyvarman commented on May 20, 2024

Hi softwarerero,

Thanks for your response.
Here are the two keys to add:

  • Khmer file: "Required field:" "វាលដែលត្រូវការ"
  • Chineses file: "Required field": "必填项目"

Thanks you in advance for this correction.

Anyway, i have another bug when i wanted upgrade your plugin release:

While selecting package versions:
error: No version of softwarerero:accounts-t9n satisfies all constraints: @1.3.11, @=2.0.0-beta.2
Constraints on package "softwarerero:accounts-t9n":

  • softwarerero:[email protected] <- top level
  • softwarerero:accounts-t9n@=2.0.0-beta.2 <- top level
  • softwarerero:[email protected] <- useraccounts:core 1.14.2 <- useraccounts:flow-routing 1.12.0

Do you have a solution ?

Thanks and best regards !

from meteor-accounts-t9n.

softwarerero avatar softwarerero commented on May 20, 2024

I need to look into this. Do you remember what you did exactly to upgrade? BTW: This is not really a problem with untranslated strings. Feel free to open another issue.

from meteor-accounts-t9n.

softwarerero avatar softwarerero commented on May 20, 2024

Hi @tuxyvarman, I just released 2.0.2 which includes your translations for "Required field". About your bug I still do not see how this can happen.

from meteor-accounts-t9n.

tuxyvarman avatar tuxyvarman commented on May 20, 2024

Hi @softwarerero,

I just can not upgrade your plugin because I use the plugin "useraccounts" and the dependencies are not satisfied.

from meteor-accounts-t9n.

softwarerero avatar softwarerero commented on May 20, 2024

I still don't think this has any relation with "untranslated strings". I guess the line https://github.com/meteor-useraccounts/core/blob/master/package.js#L33 needs to be updated, you can do it in a fork.

from meteor-accounts-t9n.

softwarerero avatar softwarerero commented on May 20, 2024

Closing as this is basically unfixable. There will always be new language strings and untranslated languages.

from meteor-accounts-t9n.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.