Giter VIP home page Giter VIP logo

gettext-cs-utils's People

Contributors

spalladino avatar

Watchers

 avatar

gettext-cs-utils's Issues

String key case conflicts with MsgFmt

Microsoft "resources" files use case-insensitive insertion and case-sensitive 
lookup, so PO files that contain string keys differing only by case do not get 
inserted when calling MsgFmt.exe.

Attached is a patch to MsgFmt.exe that works around this limitation by 
prepending to each inserted string key a "prefix string", containing the offset 
of every char that differs from the LowerInvariant char, allowing string keys 
differing only by case to be inserted into the resources file without conflict.

The patch also provides an interface for apply prefixes to, and prefixes from, 
string keys.  To look up a string, Prefix.Apply is called to apply the prefix 
the string so that it will be found:

resourceManager.GetString(Gettext.Cs.Prefix.Apply(value));

Original issue reported on code.google.com by [email protected] on 22 Oct 2012 at 6:22

Attachments:

Fuzzy strings used

What steps will reproduce the problem?
1. Have a .po with fuzzy strings
2. Use that .po for your translation

What is the expected output? What do you see instead?
I expect fuzzy strings not to be used.
I see that they are being used.

What version of the product are you using? On what operating system?
Gettext.Cs.dll, v2.0.50727 os Windows 7 (64 bit).


Original issue reported on code.google.com by [email protected] on 8 Oct 2012 at 12:07

Acessing plurals and contexts

What steps will reproduce the problem?
1. Follow the steps as described in 
http://code.google.com/p/gettext-cs-utils/wiki/SampleConsoleProject
2. Try to use plural forms ( 
http://www.gnu.org/savannah-checkouts/gnu/gettext/manual/html_node/Plural-forms.
html ) or contexts ( 
http://www.gnu.org/software/gettext/manual/html_node/Contexts.html )
3. It don't seem to be possible even if they are available in 
Lib\Gnu.Gettext\intl.cs

Original issue reported on code.google.com by [email protected] on 30 Apr 2013 at 6:51

Using Strings as ResourceType inside Metadata.

Cannot use Strings as ResourceType inside Metadata.

public class StudentMetadata
{
        [Display(Name = "lbl_name", ResourceType = typeof(Strings))]         
        [Required]
        public string Name{ get; set; }
}

Cannot retrieve property 'Name' because localization failed.  Type 'Strings' is 
not public or does not contain a public static string property with the name 
'lbl_name'.

Is there a way to make this dynamic instead of having to actually create a 
public static property for each translation item every time?

Original issue reported on code.google.com by [email protected] on 17 Jul 2013 at 9:36

String not translated if the text contain \"

The strings in the example created translated with Poedit are:

msgid "The type of parameter \"${0}\" is not supported"
msgstr "Il tipo del parametro \"${0}\" non è supportato"

In this case the text inserted in the requestor is

"The type of parameter \"
"Il tipo del parametro \"

Resolved in the attached file

Original issue reported on code.google.com by [email protected] on 27 Apr 2011 at 12:36

Attachments:

Bundled gettext doesn't extract certain characters

What steps will reproduce the problem?
1. Compile tip
2. Run Gettext.Samples.Spanish/Scripts/extract.bat

Expected result: Templates/Strings.pot containing single "Buenos días" message
Actual result: Templates/Strings.pot containing single "Buenos das" message


What version of the product are you using? On what operating system?
hg @ 6162ff8cb491

Please provide any additional information below.
The bundled version of gettext is very old (0.14,) replacing it with gettext 
0.17 fixes the issue.

Original issue reported on code.google.com by [email protected] on 25 Nov 2012 at 9:20

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.