# 多国語フォーム

フォーム内のすべてのリソースコンポーネントに行を持つOZResourceデータセットを作成できます。 また、各リソースコンポーネントアイテムは行の複数の列に複数の言語のテキスト値を持つことができます。

## リソース編集

![](https://gblobscdn.gitbook.com/assets%2F-M0LRvAG2w89F7pN5LX0%2F-M3yOzRhLWVm8FKmAuCi%2F-M3yrV8oFOhwWC8UjpDb%2Fmultilanguage-editresource.png?alt=media\&token=f81e7cfa-fe8a-4d92-878c-a4291acd99db)

Label、FixedTableLabel、Note、TableTitle、CrosstabHeader、CrosstabValueTitle、またはGanttChartTitleコンポーネントのデータ型は、標準からリソースに変更できます。 そして、これらのコンポーネントの値は、OZResourceデータセットから複数の言語で抽出できます。

![](/files/-MGr8jsmFp__Sf_qpbV9)

次に、プレビュー言語を**ko/KR**に変更して、フォームをプレビューします。

![](/files/-MGr8pAOux7izFObTbMc)

フォントを韓国語フォントに変えましょう。

![](/files/-MGr8vT0tRpCzjQrDRz4)

## 一般形態をリソースタイプに変換

複数の言語のラベルが非常に多い場合、\[リソース編集]ダイアログですべてのラベル項目を追加するのは非常に面倒な作業です。 ただし、心配しないでください。一度にすべてのラベル項目をフォームからOZResourceに自動的に追加できます。&#x20;

「一般形態をリソースタイプに変換」ダイアログを開き、\[ラベル]をチェックします。

![](/files/-MGrANB-SBim9V3Uw5-e)

すべてのラベルが一度にOZResourceに追加されます。

![](/files/-MGrASVtihJ9OvNMI2qM)

次に、\[リソース編集]ダイアログを開き、韓国語を追加します。

![](/files/-MGrAc8OzArcJi-HW6Ra)

次に、各ラベルコンポーネントに韓国語のテキスト値を配置します。

![](/files/-MGrAgTDgNWA9nBiEHnq)

プレビューして確認してみましょう

![](/files/-MGrAm1ZfSp5Rk0GjcgV)

最後に、以下のようにアプリケーションからビューア言語を設定できます。

```javascript
var lang = "ko/KR"; // en/US by default
oz.sendToActionScript("global.language", lang);
```

[Run sample](http://oz.ozeform.io/oz/guide/multi-language.html)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jp.ozeform.io/guide/language-guide/multilingual-form.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
