问题标签 [internationalization]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
621 浏览

layout - 如何在不为每种语言创建单独的 ASP 页面的情况下制作双语网站?

我需要关于如何解决表格布局问题的想法。我想根据选择的语言设置不同的列宽度。

0 投票
3 回答
2379 浏览

visual-studio - Visual Studio 中的国际化

我对 Visual Studio 还很陌生,想知道如何在我开始的新项目中最好地计划翻译。我需要提供英语、德语和法语。

我过去经常使用 Eclipse,我刚刚开发了一个新应用程序,当它完成后,我可以启动一个向导将字符串外部化到资源文件中。这些字符串将提供给某人进行翻译。

你对 VS 的体验如何?(我目前正在使用 VS2005 Express)您对计划翻译最好的建议是什么?

0 投票
3 回答
9390 浏览

c# - 如何在 KeyDown 事件中检测 NumberDecimalSeparator (C#)

我正在尝试查看用户是否在文本框中按下了小数点分隔符,并根据其他参数允许或禁止它。

NumberdecimalSeparator 返回 46 或 '.' 在我的美国系统上。许多其他国家/地区使用“,”作为分隔符。当我按下句点时,KeyDown 事件将 KeyValue 设置为 190。

我只是继续寻找逗号/句号,还是有更好的方法?

0 投票
3 回答
2515 浏览

perl - 如何在 Pod 和 perldoc 中使用 Unicode 字符?

我需要在我的 perl 文档中使用 utf-8 字符。如果我使用:

我看到奇怪的字符。如果我使用:

一切安好。

我使用 Ubuntu/Debian。

是否有关于在 Pod 中使用特殊字符的 HowTo?

这是一个使用德语变音符号“Just a Test: äöüßÄÖ”的小例子:

0 投票
1 回答
4415 浏览

wpf - Does WPF's TextBox support spell-check dictionaries for the Netherlands?

The RichTextBox supports a spellcheck option which is very nice. (SpellCheck.IsEnabled = true)

But I cannot seem to get it to another language. (I live in the Netherlands.. ;))

Does any of you have an experience with the SpellCheck option of TextBox?

I know it can be change by changing the keyboard settings, but I want to change it in the application.

What I have tried so far (and did not work):

  • Changing the CurrentCulture on the current Thread.
  • Changing the Language property in xaml in "nl-NL"
  • Changing the Language property in code with the XmlLanguage.GetLanguage("nl-NL");

You should not get any spelling errors with the following line:

"Dit is een Nederlandse tekst."

The RFC 3066 language key of my language is "nl-NL"

Many thanks, Rick

0 投票
5 回答
53112 浏览

windows-services - 如何在 Windows XP 中更改系统默认区域设置?

如何更改 Windows XP 中的系统默认区域设置以供服务使用(由系统用户运行)?

控制面板中的区域和语言选项修改登录用户的设置。但是,服务不使用用户的设置——它们使用系统设置。我知道他们可以在这里的注册表中找到:

我的问题是:有什么机制可以将系统语言/日期/等从 en-us 更改为 en-gb?

0 投票
1 回答
249 浏览

editor - What options are available for cross platform resource bundle editors?

We're releasing a new set of resource bundles for a large open source project, and I'd like to make some good recommendations for cross platform resource bundle editors to translators.

The only useful candidates I can find include:

0 投票
11 回答
8119 浏览

php - Gettext:消息 ID 是英文文本是个好主意吗?

我们正准备将我们的 PHP 网站翻译成各种语言,PHP 中的 gettext 支持看起来是可行的方法。

我看到的所有教程都建议使用英文文本作为消息 ID,即

gettext("你好!")

但这真的是个好主意吗?假设营销人员想要将文本更改为“Hi there, y'all!”。那么您是否不必更新所有语言文件,因为该字符串(实际上是消息 ID)已更改?

拥有某种通用 ID(例如“hello.message”)和英文翻译文件会更好吗?

0 投票
2 回答
1975 浏览

c# - 从附属程序集中获取所有受支持的文化

我正在使用附属程序集来保存 C# 应用程序中的所有本地化资源。

我需要做的是在 GUI 中创建一个菜单,其中包含应用程序存在的所有可用语言。有没有办法动态获取信息?

0 投票
2 回答
2896 浏览

c++ - 将简体中文 GB 2312 文本字符转换为 UTF8

如何使用 c++ 将多字节文本字符串(例如简体中文 GB 2312)之间的文本转换为 UTF8?