Skip to content

CRLF-based verbatim string literals are not translated. #41

@air-hand

Description

@air-hand

Hello.

I use NGettext with gettext on Windows.

In my project, all source codes are CRLF-based.

but, the verbatim literals like below are not translated.

// in CRLF-based source code.

var translated = _("foo bar baz");

var not_traslated = _(@"
foo
bar
baz
");

The gettext tools understand only LF (without CR) I think, so built *.po and *.mo files include only LF even though with CRLF-based source codes.
and, I found this has happened because NGettext doesn't ignore CRLF and LF differences.

I know I can change all of my code to LF-based, but it may be forgotten in the future because CRLF is the default on Windows.

so, I want NGettext to ignore the differences between CRLF and LF.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions