-
Notifications
You must be signed in to change notification settings - Fork 54
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
Missing/fixing language strings #254
Conversation
This makes the lang string more specific. And allow to have a simple “reset” button (e.g.: profile.md)
+ new string created for submit profile as in save profile context
+ PLUGIN_LOGIN.PROFILE_UPDATED for profile updated message
+ ENTER_EMAIL: "Enter your email" + ENTER_NEW_PASSWORD: "Enter new password"
+ ENTER_PASSWORD + ENTER_PASSWORD_AGAIN + REGISTRATION_THANK_YOU
Looks good so far. Since we're remapping |
Hi @Vivalldi |
Hi! The BTN_RESET: Reset Password to BTN_RESET: Reset
BTN_RESET_PASSWORD: Reset Password
There's also the case where now in some languages I haven't had time to review the rest of the PR but I'm sure the Andy or Matias will chime in. p.s. Welcome to the Grav community! I see you're a first-time contributor. Glad to have you onboard 🎉 |
Good point on other language files ! Since I don't speak these languages, do you suggest that I still add the strings with the English text? I also wanted to order the strings by alphabetical order to clean this up a bit, but I don't want to impose. ps: thank you for your welcoming words. I really enjoy Grav. It's actually fun to develop with. |
you could order the strings alphabetically but usually they might be organized in sections of content, regarding the text in english since we dont want the fallback to happen then yes we would need english across all languages manually. Another big + to the community, join the Discord the core devs and the community is active and helpful |
So what I would do is rename |
This looks good to me, is it ready to merge??? |
Thank you @ricardo118 and @Vivalldi, I'll push these changes. @rhukster Sorry for my late reply, just got back from a long week-end out of the city. I'll push the latest changes tomorrow (Monday) the latest and update the PR. Thank you for waiting. |
@rhukster as promise, here is the new PR where I applied the same changes and new strings to the rest of the language files. |
thanks so much! merged... |
Missing lang string for placeholder, button and messages.
PLUGIN_LOGIN.USERNAME_EMAIL
tousername
placeholder in login.mdPLUGIN_LOGIN.PASSWORD
topassword
placeholder in login.mdPLUGIN_LOGIN.USERNAME_EMAIL
tousername
placeholder in reset.mdPLUGIN_LOGIN.PASSWORD
topassword
placeholder in reset.mdBTN_RESET
toBTN_RESET_PASSWORD
in language fileen.yaml
,fr.yaml
and inreset-form.html.twig
BTN_SUBMIT_PROFILE
in language fileen.yaml
,fr.yaml
and inprofile.md
. Reason: in some languages (e.g.: French) the translation of “submit” differs depending on the context. In the context of profile.md, we are saving changes.PLUGIN_LOGIN.PROFILE_UPDATED
inen.yaml
andfr.yaml
for confirmation message that profile has been updatedPLUGIN_LOGIN.PROFILE_UPDATED
toprofile.md
ENTER_EMAIL
for “Enter your email” inen.yaml
andfr.yaml
ENTER_NEW_PASSWORD
for “Enter new password” inen.yaml
andfr.yaml
ENTER_EMAIL
andENTER_NEW_PASSWORD
toprofile.md
ENTER_PASSWORD
for “Enter password” inen.yaml
andfr.yaml
ENTER_PASSWORD_AGAIN
for “Enter the password again” inen.yaml
andfr.yaml
REGISTRATION_THANK_YOU
for “Thank you for registering.” inen.yaml
andfr.yaml
ENTER_PASSWORD
,ENTER_PASSWORD_AGAIN
andREGISTRATION_THANK_YOU
toregister.md
I hope it helps. Don't hesitate if you have any question or if I can help some more the great grav project.
Since I am not sure the reasoning behind it, I did not add
label
in the field attribute on some pages (e.g.: reset.md). See bug #253