Errors translating

This topic contains 22 replies, has 3 voices, and was last updated by  Alex Rollin 4 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #4776

    P O
    Free User
    Post count: 501

    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.

    #4777

    Alex Rollin
    Moderator
    Post count: 27815

    We will take a look at those and post an update here.

    Are you trying to add the Register shortcode to the add-listing page?

    #4778

    P O
    Free User
    Post count: 501

    No, I am adding it to a custom page.

    #4779

    Alex Rollin
    Moderator
    Post count: 27815

    Please 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

    #4780

    P O
    Free User
    Post count: 501

    I 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.

    #4782

    Patrik
    Moderator
    Post count: 1971

    Hi,

    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,
    Patrik

    #4783

    P O
    Free User
    Post count: 501
    [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 GeoDirectory

    Again, having “Places” for every option makes no sense.

    Add Place > Add a New Place
    My Listings > Edit My Listing

    I 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.

    #4784

    Patrik
    Moderator
    Post count: 1971

    Hi,

    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,
    Patrik

    #4785

    P O
    Free User
    Post count: 501

    So 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.

    #4786

    Patrik
    Moderator
    Post count: 1971

    You 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,
    Patrik

    #4787

    P O
    Free User
    Post count: 501

    That include the “Places” in the login box for select options?

    Thank you.

    #4788

    Patrik
    Moderator
    Post count: 1971

    I 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,
    Patrik

    #4789

    P O
    Free User
    Post count: 501

    Login Form.
    Logged In.
    Select Options.
    Add Place > “Places”
    My Listings > “Places”

    I need to translate those 2 “Places” with different texts.

    Thanks.

    #4790

    Patrik
    Moderator
    Post count: 1971

    I 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,
    Patrik

    #4791

    P O
    Free User
    Post count: 501

    You 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.

Viewing 15 posts - 1 through 15 (of 23 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket