Globalyzer Concatenation

From Lingoport Wiki
Revision as of 18:03, 5 November 2015 by Olibouban (talk | contribs) (Introduction)
Jump to: navigation, search

UNDER EMBARGO

Introduction

String concatenation is widely used in software programming. String concatenation is the operation of joining two character strings end-to-end For example:

String hi = “Hello ” + “World!”;

Another example:

System.out.print(“Hello “);
System.out.println(“World!”);


A typical usage is with a variable in the middle of a string:

String ua = user +“ is ”+ age + “ years old.”;

The strings "is" and " years old." could be externalized into two resources in a resource bundle, for example in a file named resources.properties:

RES1= years old.
RES2=Title
RES3=Navigate
RES4=is

If a translator ends up with four segments to translate, the overall sentence is lost. Furthermore, even if the translator could translate it correctly, the word order is different by languages, the grammar is different too.

User Interface

Type of Rules

Example

Code Snippet



This snippet of code does have strings.


Rule

The String Method Filter rule would be configured the following way:

  • Name: '
  • Pattern: '
  • Class or Variable Type(s): '
  • Description: '
  • Help Page: <blank>

The String Method Detection rule would be configured the following way:

  • Name: '
  • Pattern: '
  • Class or Variable Type(s): '
  • Description: '
  • Help Page: <blank>

Result

When the rules are applied:

  • The string
  • The string