From: SourceForge.net <no...@so...> - 2011-06-27 06:26:20
|
Feature Requests item #3330974, was opened at 2011-06-25 15:39 Message generated for change (Comment added) made by didierbr You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=520350&aid=3330974&group_id=68187 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: File filters Group: None >Status: Pending Resolution: None Priority: 5 Private: No Submitted By: Guido Leenders (guido_leenders) Assigned to: Nobody/Anonymous (nobody) Summary: targetLocale for use with DotNetNuke ResX Initial Comment: In filters.xml you can use ${targetLocale}. We use dotnetnuke as a CMS for our site. The original resx could be named 'Widget.ascx.resx' and the translated must be named 'Widget.ascx.nl-NL.resx'. TargetLocale however uses '_' as separator. It would be great to have a similar ${} variable in filters.xml to allow direct generation of a '-' as separator. ---------------------------------------------------------------------- >Comment By: Didier Briel (didierbr) Date: 2011-06-27 08:26 Message: To Guido: is the workaround satisfying? Didier ---------------------------------------------------------------------- Comment By: Jean-Christophe Helary (brandelune) Date: 2011-06-27 00:43 Message: This typo has been corrected in 2.2.3 update 2. ---------------------------------------------------------------------- Comment By: Guido Leenders (guido_leenders) Date: 2011-06-27 00:18 Message: Hi Didier, thanks for the advice. The suggested code does not work on 2.2.3_1. ${targetCountryCode} does not exist, but ${targetCoutryCode} works fine. In AbstractFilter.java it says: /** country "YY" only */ public static final String TFP_TARGET_COUNTRY_CODE = "${targetCountryCode}"; /** Old spelling of the variable for country "YY" only */ public static final String TFP_TARGET_COUTRY_CODE = "${targetCoutryCode}"; Is this correct or should it be "country"? In the filter screen in OmegaT I can only select coutry. ---------------------------------------------------------------------- Comment By: Didier Briel (didierbr) Date: 2011-06-25 20:05 Message: Instead of targetLocale, you can use: ${targetLanguageCode}-${targetCountryCode} (inserting a dash manually between the two variables), so I'm not sure there is a real need for another variable. Didier ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=520350&aid=3330974&group_id=68187 |