Results 1 to 8 of 8

Thread: Translation issues w/HTML special character entities

  1. #1
    Thread Starter
    domino1957's Avatar
    Join Date
    Apr 2012
    Location
    Switzerland, The Net
    Posts
    779
    Thanks
    29
    Thanked 120 Times in 99 Posts

    Translation issues w/HTML special character entities

    I just noticed the following bug in ClassiPress, in connection with localization files and HTML entites:

    Thoughout my German translation files, I use '& auml;' (without the space) etc. for German umlauts and other special characters. In at least one place, this leads to an error in the German text, as you can see in the following attachment.

    bitte_wählen.PNG

    The text in the dropdown field is cut off after the first ampersand, with the term 'Select One' being translated as "Bitte w& auml;hlen Sie' (again, I am leaving a space intentionally for demostration purposes)

    The corresponding code is in /includes/forms/step1.php lines 62ff:
    PHP Code:
                         if ( $cp_options->price_scheme == 'category' && cp_payments_is_enabled() && $cp_options->ad_parent_posting != 'no' ) {
                                    
    cp_dropdown_categories_prices('show_option_none=' __'Select one'APP_TD ) . '&class=dropdownlist&orderby=name&order=ASC&hide_empty=0&hierarchical=1&taxonomy='.APP_TAX_CAT.'&depth=1');
                                } else {
                                     
    wp_dropdown_categories('show_option_none=' __'Select one'APP_TD ) . '&class=dropdownlist&orderby=name&order=ASC&hide_empty=0&hierarchical=1&taxonomy='.APP_TAX_CAT.'&depth=1');
                                }

                                if ( 
    $cp_options->price_scheme == 'category' && cp_payments_is_enabled() && $cp_options->ad_parent_posting != 'no' ) {
                                    
    cp_dropdown_categories_prices('show_option_none=' __'Select one'APP_TD ) . '&class=dropdownlist&orderby=name&order=ASC&hide_empty=0&hierarchical=1&taxonomy='.APP_TAX_CAT.'&depth=1');
                                } else {
                                     
    wp_dropdown_categories('show_option_none=' __'Select one'APP_TD ) . '&class=dropdownlist&orderby=name&order=ASC&hide_empty=0&hierarchical=1&taxonomy='.APP_TAX_CAT.'&depth=1');
                                } 
    There my be other occurrences of this error, I believe the code must be corrected using the esc_attr_e() function, in order for this not to produce an error, however, I have not been successful in implementing the change. Could somebody please look into this and advise on the proper course of action?

    Also, my apologies for not picking up an error of thiis type earlier.
    Get my German translation files for JobRoller and ClassiPress here - and for FXtender here.

  2. #2
    Thread Starter
    domino1957's Avatar
    Join Date
    Apr 2012
    Location
    Switzerland, The Net
    Posts
    779
    Thanks
    29
    Thanked 120 Times in 99 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Get my German translation files for JobRoller and ClassiPress here - and for FXtender here.

  3. #3
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  4. #4
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  5. #5
    Thread Starter
    domino1957's Avatar
    Join Date
    Apr 2012
    Location
    Switzerland, The Net
    Posts
    779
    Thanks
    29
    Thanked 120 Times in 99 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Get my German translation files for JobRoller and ClassiPress here - and for FXtender here.

  6. #6
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  7. #7
    samcy's Avatar
    Join Date
    Mar 2012
    Location
    Germany
    Posts
    12,098
    Thanks
    121
    Thanked 1,756 Times in 1,442 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Rolf Hassel (Samcy)

  8. #8
    Thread Starter
    domino1957's Avatar
    Join Date
    Apr 2012
    Location
    Switzerland, The Net
    Posts
    779
    Thanks
    29
    Thanked 120 Times in 99 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Get my German translation files for JobRoller and ClassiPress here - and for FXtender here.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Translation Issues
    By geralweb in forum Report JobRoller Bugs
    Replies: 6
    Last Post: April 8th, 2013, 08:22 AM
  2. [SOLVED] Translation issues
    By vincitore in forum Report Vantage Bugs (Legacy)
    Replies: 2
    Last Post: January 14th, 2013, 02:20 PM
  3. [SOLVED] Upgrading 3.1.8 to 3.1.9 issues with translation and Categories menu
    By dreamrooms in forum Report ClassiPress Bugs
    Replies: 10
    Last Post: May 27th, 2012, 08:00 PM
  4. [SOLVED] Translation Issues - Can't get it to work
    By sergiomsperb in forum Help Using ClassiPress
    Replies: 2
    Last Post: January 20th, 2012, 11:06 AM
  5. Character encoding issues in the title
    By eastoregonian in forum Report ClassiPress Bugs
    Replies: 1
    Last Post: September 21st, 2011, 09:01 AM