Questions tagged [string-externalization]

Part of spring framework which is responsible for configuration customization: override configuration from System environments, property files, command line parameters.

19 questions
8
votes
1 answer

Check ASPX files to make sure that Resource Key referenced exsists in RESX

I have a rather large website that had its strings externalized. I wanted to know if there was a way to check to make sure that a resource object in the ASPX exists in the resource file that is being referenced? There are a few pages that get…
4
votes
3 answers

How to externalize i18n properties files in spring-boot applications

I’ve succeed to externalize my spring-boot configuration file (application.properties) in a config folder when I run my spring-boot application as a unix service with the help of the official spring documentation…
3
votes
2 answers

Is there a way to set one "//$NON-NLS" annotation for all Strings in one line?

does anybody know if it is possible to set one //$NON-NLS annotation tag in java for all Strings in one line... maybe like this: String[][] info = new String[][]{ {"a1", "a2"}, {"b1", "b2"}, {"c1", "c2"}, {"d1", "d2"} //$NON-NLS-ALL$ }; …
Jimi Jimbo
  • 31
  • 5
3
votes
1 answer

Externalize strings in Javascript

I have been searching on line for a tool that externalized strings in JavaScript but I have been unable to do so. I was hoping there would be something similar to the one built into eclipse (Source -> Externalize Strings...). If someone knows of a…
hbhakhra
  • 4,206
  • 2
  • 22
  • 36
2
votes
3 answers

Website localization for multibyte languages

I have started to code a multi-language feature for a medium-sized website with a lot of hardcoded text. As the website is supposed to be translated into Japanese and Korean (multibyte character set) I am considering the following: If I use string…
2
votes
1 answer

Configuring string externalization in Eclipse to use ${key} as field name

Suppose I have a simple code like this: public class ExternalizeStringDemo { public static void main(String[] args) { System.out.println("Hello world"); } } Now, I want to externalize the greeting, perhaps to facilitate…
polygenelubricants
  • 376,812
  • 128
  • 561
  • 623
1
vote
1 answer

Best Way to externalize system properties on a multi-environment application

We are working with a Spring 3 application that runs on several environments (test, UAT and Production) these environments are managed by a third party company so we have almost no access to the servers. We have tried with Jboss System Properties…
Chepech
  • 5,258
  • 4
  • 47
  • 70
1
vote
0 answers

Configure Eclipse string externalization wizard that value is used as key

I use Eclipse to externalize my language dependent strings. How can I change its default behavior in the following way: In the default the keys are numbered 0 .. n. I would like the key to be the value. Even better would be if the key would be the…
1
vote
0 answers

Eclipse - Externalizing strings with keys based on component name instead of numbers

I use Eclipse Luna 4.4.2 using the "externalize strings" wizard (from right click on the class in the package explorer) it replaces my original strings by another string pointing to the key in the property file. For example, having this label…
1
vote
1 answer

Is there way to change NON-NLS tag itself to something else?

In Eclipse Kepler I started externalizing strings and the wizard puts the NON-NLS behind the lines. I know the reasons why and that's great, but is there way to modify this tag to be something else? For example for code style you can use tags to…
Anton Krug
  • 1,555
  • 2
  • 19
  • 32
0
votes
1 answer

Why message property return Null in Spring MVC

Im working on a project where i want to externalize message. properties file. So that operation team can change according to the requirement. For that i wrote a configuration class like this @Configuration @ComponentScan(basePackages =…
Das_J
  • 71
  • 2
  • 9
0
votes
1 answer

Angular 5 String Constant Externalisation

Current behaviour We are trying load string label constants based on some criteria, So that it can be configurable without build and code modification. Expected behaviour Should provide some configuration files outside of an app folder, based on the…
0
votes
1 answer

How pass and parse json to spring boot standalone application?

For example: java -jar mySpringApplication --myJsonParameter="{\"myKey\":\"myValue\"}" This should be resolved like that: public class MyService { @Autowired //or @Value("myJsonParameter") ? private MyInputDto myInputDto; } public…
Cherry
  • 31,309
  • 66
  • 224
  • 364
0
votes
0 answers

spring 2.5: loading environment specific properties file

I have a legacy application on which I am working to implement some requirements. While doing so, I want to load the environment specific properties file for each environment. For example:
user123475
  • 1,065
  • 4
  • 17
  • 29
0
votes
0 answers

how to find the Strings which are hard-coded in xHtmls

how to find the Strings which are hard-coded in xHtmls and java code base. The purpose is to externalize them as part of localization. I mean they are not in a particular pattern to use regex to find them. is there a third party tool which can…
kash
  • 1
  • 2
1
2