i18n icon indicating copy to clipboard operation
i18n copied to clipboard

Cannot Translate a String ending with fullstop(.)

Open santosh-1987 opened this issue 11 years ago • 2 comments

Hi ,

I want to translate a string ending with full Stop, But It is unable to translate.

eg:

My Key Value Pairs [{ :"Requested part is not available in your on site FSL."=> "Parte richiesta non è disponibile nel tuo sito su FSL. Elaborare la richiesta magazzino comunque ?" }]

Now when I try to translate the string to Italian Format I get the error:

pry(#)> I18n.translate("Requested part is not available in your on site FSL.") => "translation missing: it.Requested part is not available in your on site FSL"

This Issue only occurs for a sentence ending with a (.)

Let me kindly Know how to Solve it .

Thanks in Advance !!!

santosh-1987 avatar Mar 13 '14 06:03 santosh-1987

Hi @santosh-1987 ,

I have generalized your issue and investigated it a bit here https://github.com/svenfuchs/i18n/pull/274

In the meantime, try not to use a dot at the end of a translation key, as this is problematic as you can see in the issue I created.

chipairon avatar Jul 21 '14 15:07 chipairon

I agree with @Chipairon. Try not to use a dot at the end of keys in the meantime. Once #274 is merged, then you can use dots all you want :D

radar avatar Nov 20 '16 23:11 radar