Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4055906
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T14:45:36+00:00 2026-05-20T14:45:36+00:00

I’m having a strange behavior in my .aspx page. I’m internationalizing some pages, but

  • 0

I’m having a strange behavior in my .aspx page. I’m internationalizing some pages, but as I want to keep only entities or value object in my resource I want to have a key-value like:

(pt-br)
    CITY - Cidade
    STATE - Estado
    ...

But when I list the entities, I want to put the ” : ” at end. Like:

<asp:Label ID="LabelCity" runat="server" Text="<%$ Resources:Localizacao, CITY %>:"></asp:Label>

But, if I put the ” : ” after the resource in text property, the page only shows ” : “.

My simple solution is put after all definition of label, but I think this too wrong:

<asp:Label ID="LabelCity" runat="server" Text="<%$ Resources:Localizacao, CITY %>"></asp:Label>:

Suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T14:45:37+00:00Added an answer on May 20, 2026 at 2:45 pm

    You named this correctly: the concatenation. The problem is, Concatenation is one of the most serious (as in high severity) i18n defect.
    Instead of doing what you do, I would advise you to put whole strings (or in the worst case scenario strings with placeholders) into resource files, even you have to duplicate resources (these duplicated resources might be translated in different way depending on a context).

    Let me give you an example: back when I was in L10n Team, we had a console with multiple pages, each page had a title which was “Something Policy“, i.e. “Firewall Policy“, “Antivirus and Antispyware Policy“. Somebody thought it is a good idea to save some precious bits and simply concatenated the title together:

    String title = Resources.getString("Firewall") + "<b>" + Resources.getString("Policy") + "</b>";
    

    The only problem we had is correct Polish translation sounds like “Polityka zapory ogniowej”, that is “Policy” comes first. In reality, we had it translated as “Zapora ogniowa Polityka” which is nowhere near the correct translation (notice that translation of “Firewall” should be genitive… Translator had no clue what he is translating, thus the translation. And it couldn’t be fixed as we were unable to re-order the sentence.

    The fix required externalizing the whole string, so actually all the good intentions of original developer went to pave the hell.

    If you still reading this, please keep in mind, that all colons in French language must be preceded by space (that’s just their rule). Re-using the same translations in order to build multiple sentences might disallow that…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I want to construct a data frame in an Rcpp function, but when I
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have this code to decode numeric html entities to the UTF8 equivalent character.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.