Histórico da Página
...
Agora a literal de tradução está mais simplificadasimples, conforme apresentado pela tabela abaixo.
...
Para não prejudicar o legado já desenvolvido em Flex, na utilização da metodologia de tradução, foram reaproveitados os métodos já existentes.
São eles:
Classe I18nUtil.as
Método getLabelBloco de código theme Eclipse language javascript linenumbers true public static function getLabel(label:String, stringID:String=null):String { var uLabel:String = ""; var runtimeMode:String = PropertyUtil.getInstance().getProperty("runtime.mode", "production"); var trans:String = ""; if(stringID==null){ if(label!=null){ uLabel = stringReplaceAll(label, " ", "_"); trans = I18NService.translate(uLabel); }else{ label = ""; } if(trans == uLabel){ trans = label; } }else{ uLabel = stringReplaceAll(stringID, " ", "_"); trans = I18NService.translate(uLabel); if (trans == uLabel) { trans = label; if (runtimeMode != "production") { trans += "#"; } } } return trans; }
Classe I18NService.as
Método translateBloco de código theme Eclipse language javascript linenumbers true public static function translate(key:String):String { var result:String = strings.getValue(key) as String; if (result == null) { result = literals[key] as String; } if(result == null){ result = key; } return result; }
...
Bloco de código | ||
---|---|---|
| ||
DEFINE VARIABLE translatedText AS CHARACTER. translatedText = GET-TRANSLATION("universal.close.button"). |
...
Novo:
Bloco de código | ||
---|---|---|
| ||
DEFINE VARIABLE translatedText AS CHARACTER. translatedText = GET-TRANSLATION("Fechar"). |
...
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas