Giter Club home page Giter Club logo

i18n-binder's People

Watchers

 avatar

Forkers

redrede

i18n-binder's Issues

Path in first column - relative?


Can the path in the first column be changed to be relative?  

For example, it currently writes the full path:

  C:\dev_files\project_A\i18n\filename-{locale}.properties

I edited the Excel file to remove the base directory, ending up with:

  i18n\filename-{locale}.properties

Seemed to work fine on writeProperties.  I don't know if the writeProperties 
uses the full path, but this would help team members take a file that was 
created on another computer and write the properties in their environment.

Thanks,
Jeff


Original issue reported on code.google.com by [email protected] on 4 Nov 2014 at 3:41

Excel number of rows greater then 65k support

Is the possible to add support of excel export with more than 65k rows to avoid 
such an exception? 

I think the current solution works with older version of Excel where only 65k 
rows is supported. Would it be possible to support later formats as well?

BUILD FAILED
c:\Development\DOCS\Siemens\SWE\translation\i18nBinder_0.1.12\build.xml:32: 
java.lang.IllegalArgumentException: Invalid row number (65536) outside all
ge (0..65535)
        at org.apache.poi.hssf.usermodel.HSSFRow.setRowNum(HSSFRow.java:232)
        at org.apache.poi.hssf.usermodel.HSSFRow.<init>(HSSFRow.java:86)
        at org.apache.poi.hssf.usermodel.HSSFRow.<init>(HSSFRow.java:70)
        at org.apache.poi.hssf.usermodel.HSSFSheet.createRow(HSSFSheet.java:213)
        at org.apache.poi.hssf.usermodel.HSSFSheet.createRow(HSSFSheet.java:79)
        at org.omnaest.i18nbinder.internal.XLSFile.store(XLSFile.java:138)
        at org.omnaest.i18nbinder.I18nBinder.createXLSFileFromFiles(I18nBinder.java:156)
        at org.omnaest.i18nbinder.I18nBinder.run(I18nBinder.java:103)
        at org.omnaest.i18nbinder.I18nBinder.execute(I18nBinder.java:73)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:392)
        at org.apache.tools.ant.Target.performTasks(Target.java:413)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
        at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
        at org.apache.tools.ant.Main.runBuild(Main.java:811)
        at org.apache.tools.ant.Main.startAnt(Main.java:217)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

Original issue reported on code.google.com by [email protected] on 17 May 2012 at 12:47

Newlines are escaped when converting from Excel to properties

What steps will reproduce the problem?
Using the i18nBinder with the following properties i18nBinder.properties : 

useJavaStyleUnicodeEscaping = true
fileEncoding = ISO-8859-1

There is a text in the Excel files which contains newlines. E.g.
"Firsts line with a special char í \n And the second line"

What is the expected output? What do you see instead?
I would escpect, that the String is translated to 
"Firsts line with a special char \u00ED \n And the second line"

But instead the newline is escapeded too:
"Firsts line with a special char \u00ED \\n And the second line"

This is not right, since newlines are supported by properties and by ISO-8859-1

Original issue reported on code.google.com by [email protected] on 18 Mar 2014 at 9:31

PropertyFileContentParserTest fails in linux

What steps will reproduce the problem?
1. Checkout source code using linux
2. Execute `mvn install` in folder CommonUtils
3. Maven reports 1 test failure

What is the expected output? What do you see instead?

The expected value, taken from PropertyFile.properties, contains embedded DOS 
line endings (\r\n), while the generated file contains unix line endings (\n). 
Saving PropertyFile.properties using unix line endings fixes the problem. Unix 
line endings should work on Windows too, so I would suggest that as a fix.

What version of the product are you using? On what operating system?

SVN checkout of revision 40


Original issue reported on code.google.com by [email protected] on 13 Jul 2011 at 2:24

Unicode sequences should be unescaped in Excel

What steps will reproduce the problem?
1. Export an Excel

What is the expected output?
Caffè

What do you see instead?
Caff\u00E8

What version of the product are you using? On what operating system?
0.1.16 (Maven)

Please provide any additional information below.
Having those strings in the Excel is confusing for translators. The task should 
output normal characters and then manage to convert them back to unicode 
escapes when importing back the Excel.

Original issue reported on code.google.com by [email protected] on 19 Feb 2013 at 9:04

Issue when deleting a value from a locale column in the excel

What steps will reproduce the problem?
1.  Have an i18n.xls file with more than one locale column, e.g. en_US and de_DE
2.  Delete the value for the first column, en_US
3.  After writing the properties file back, you can see that for the row 
modified that the columns are out of order, e.g. the de_DE value will show up 
in th en_US property file.

What is the expected output? What do you see instead?
I expect that the en_US file would no longer have that key/value pair

What version of the product are you using? On what operating system?

0.1.17 maven plugin, on windows 64 bit, office 2013


Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 26 Sep 2013 at 5:32

Not able to export non-UTF-8 properties files properly

What steps will reproduce the problem?
1. Create a XLS(X) output from non-UTF-8 input properties files

What is the expected output? What do you see instead?
When the original properties files are not UTF-8 encoded, they are not readed 
properly, they appear to be read as UTF-8 (so strange characters appears).

What version of the product are you using? On what operating system?
Bugs still exists on latest trunk version.


Please provide any additional information below.
Could be easily solved by using the ant "fileEncoding" parameter for reading 
(it is only used for writing at the moment).

Patch attached.

Original issue reported on code.google.com by [email protected] on 7 Sep 2012 at 11:13

Attachments:

strings with '!' often turn up empty in xls

What steps will reproduce the problem?
1. have properties files with strings that end with or use '!' somewhere
2. createXLS
3.

What is the expected output? What do you see instead?
those strings should show up as well

What version of the product are you using? On what operating system?
0.1.2 on mac

Please provide any additional information below.
I think it is caused by the !, but I did not do thorough testing ... yet ... I 
can help with fixing the bug, but have not had time to set up the proj. yet.
I could provide a set of files, but they need to be treated confidentially.
You can contact me at [email protected] if you would like the samples.

Original issue reported on code.google.com by [email protected] on 6 Oct 2011 at 10:40

Improvement of FacadeCreatorHelper

I have attached an improved version of FacadeCreatorHelper.java:

1. java.util.Map is only imported if needed
2. generated Code for getters with replacement tokens should use Object-typed 
tokens instead if String

Maybe I can get committer permissions? :)

Regards, Stephan

Original issue reported on code.google.com by [email protected] on 24 Jun 2014 at 1:48

Attachments:

Fork of i18n-binder under the name kilt

Hello,

since you host a repository with a copy of i18n-binder, I just wanted to inform you in case you are interested. If not feel free to ignore or totally delete this message.

After trying to do some small changes to i18n-binder I ended up with so many changes that I made fork under a new name: https://github.com/hupfdule/kilt

Check it out if you are interested.

  • The facade generation was recreated from the ground up. The resulting facade is much different (much simpler, much more concise and usable) than the original one.
  • The commands and parameters are partly renamed to be more concise.
    XLS(X) files are now updated instead of recreated each time. This allows manual changes to the document (like cell formatting) without losing them after a new export.
  • Empty cells and default resource bundles (without a country code) in the XLS(X) are now supported (which was not the case with i18n-binder).
  • Also a command line application was added that does not depend on ant.
  • And finally another runtime jar was added for using the generated facade in other projects or even have a saner access to resource bundles without any generated facade at all.

Properties with spaces fail

What steps will reproduce the problem?
1.Create a properties file where the key has a space
2.run ant createXLSFile
3.open the XLS sheet. The key will be up to the space. The value is everything 
after the space.

What is the expected output? What do you see instead?
The space is escaped with a backslash. This should be supported.

What version of the product are you using? On what operating system?
Linux. Tried inside eclipse as well as stand alone ant.

Please provide any additional information below.

Original issue reported on code.google.com by [email protected] on 12 Nov 2013 at 4:10

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.