Errors translating
This topic contains 22 replies, has 3 voices, and was last updated by Alex Rollin 5 years, 4 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket-
AuthorPosts
-
July 18, 2019 at 7:22 pm #4776
I am translating to Spanish and there are some strings missing and some others being pulled from Geodirectory.
REGISTER can’t be translated in the register page.
FORGOT PASSWORD? can’t be translated in the recover password page.
Under Send: Between have an account? and Login here, there is a ` inserted.Using the shortcode to show the register box in one of my pages, it is using “ADD PLACE” from Geo Directory instead of REGISTER.
How can I fix those?
Thanks.
July 18, 2019 at 8:02 pm #4777We will take a look at those and post an update here.
Are you trying to add the Register shortcode to the add-listing page?
July 19, 2019 at 3:02 am #4778No, I am adding it to a custom page.
July 19, 2019 at 11:52 am #4779Please share WP Admin so we can have a look.
If you are using PO files please also share FTP so we can check the files and make a fix.Thanks
July 19, 2019 at 5:35 pm #4780I am using PO files in plugins/languages. Please find es_ES translations attached. Of course you need GeoDirectory installed to see how everything is incorrect.
[uwp_login]
(When already logged in)
Select Options:
Add Place > “Places” – From GeoDirectory
My Listings > “Places” – From GeoDirectory[uwp_register]
“ADD PLACE” from Geo Directory instead of REGISTER
Default Pages.
– REGISTER can’t be translated in the register page.– FORGOT PASSWORD? can’t be translated in the recover password page.
— Under Send: Between have an account? and Login here, there is a ` inserted.Thank you.
July 22, 2019 at 5:56 am #4782Hi,
The text you are saying is in the form or it’s a page title? We already have all the strings translatable in all the forms. If you are talking about the form title then you have to change the page title to the translated text. If you can provide screenshots then it would be helpful for us to fix the issue.
Regards,
PatrikJuly 22, 2019 at 6:15 am #4783[uwp_register]
That gives me a box for registering, but uses “Information to add a place” instead of “Register” in the box title because the page has that title?
It makes no sense.
Now I have to rename my pages to translate the plugin?
Do you see the problem?[uwp_login]
That shows a login box and once you are logged in you have a “Select Options” with:
Add Place and the option “Places” – From GeoDirectory
My Listings and the option “Places” – From GeoDirectoryAgain, having “Places” for every option makes no sense.
Add Place > Add a New Place
My Listings > Edit My ListingI need to have the texts I need, not the ones the plugin decide.
Default Pages
– REGISTER can’t be translated in the register page.
– FORGOT PASSWORD? can’t be translated in the recover password page.
— Under Send: Between have an account? and Login here, there is a ` inserted.Now that I know the problem, in this two I have to rename my pages to translate the plugin. Which again, has no logic at all. Rename your pages to translate the plugin correctly and if you have those boxes in different pages (because we offer shortcodes to include them in any page), well, you can’t, rename your site and pages so the plugin is translated.
Who decided that was a good idea?
Thank you.
July 22, 2019 at 6:25 am #4784Hi,
The title is coming from the register.php template file which you can override in your theme and make changes accordingly. We also have provided a filter ‘uwp_template_form_title’ which you can use to translate the title of any forms.
Regards,
PatrikJuly 22, 2019 at 6:27 am #4785So to translate I can’t translate using PO files, I have to use your method, which is renaming pages or using filters. (Which makes no sense)
As renaming pages is not an option, please let me know how can I use “uwp_template_form_title” to translate the mentioned above.
Thanks.
July 22, 2019 at 6:34 am #4786You can put the following code in the functions.php file of the currently active theme:
add_filter('uwp_template_form_title', 'uwp_template_form_title_cb'); function uwp_template_form_title_cb($title){ return __($title, 'userswp'); }
This will make the title translatable and you can use .po file to translate the page title displaying in the form.
Regards,
PatrikJuly 22, 2019 at 6:36 am #4787That include the “Places” in the login box for select options?
Thank you.
July 22, 2019 at 6:47 am #4788I am not getting your point. Do you mean login form in add places? The filter I have used is applied to all form titles of UsersWP forms.
Regards,
PatrikJuly 22, 2019 at 6:52 am #4789Login Form.
Logged In.
Select Options.
Add Place > “Places”
My Listings > “Places”I need to translate those 2 “Places” with different texts.
Thanks.
July 22, 2019 at 6:55 am #4790I will need your site details to check how it is working on your site as I can’t say without checking your site here or you can provide screenshots so I can get the idea.
Regards,
PatrikJuly 22, 2019 at 6:57 am #4791You are ok with Spanish and will understand what the translated words say?
Because if not, you will just see letters without having a clue what string should go in each place.
I believe what I posted above specifies exactly where the “Places” appear.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket