private String buildGoogMsgVarNameHelper ( MsgNode msgNode ) { // NOTE: MSG_UNNAMED/MSG_EXTERNAL are a special tokens recognized by the jscompiler. MSG_UNNAMED // disables the default logic that requires all messages to be uniquely named. // and MSG_EXTERNAL causes the jscompiler to not extract these messages. String desiredName = jsSrcOptions . googMsgsAreExternal ( ) ? "MSG_EXTERNAL_" + MsgUtils . computeMsgIdForDualFormat ( msgNode ) : "MSG_UNNAMED" ; return translationContext . nameGenerator ( ) . generateName ( desiredName ) ; }
Builds the googMsgVarName for an MsgNode .