文件管理

你可以通过原文 > 文件管理所有项目的文件。 在这里,你可以使用各种支持的格式手动上传文件以进行本地化。 上传文件后,您将能够浏览一下您的文件包含多少个字符串以及对每个文件进行了多少次修订(更改)。

如果想要配置文件与项目的自动同步,请使用集成标签页。

调整文件优先级

您可以通过点击所需文件旁边的箭头图标设置每个文件的特定优先级。 译员将能够按照优先级顺序在语言页面和编辑器中看到这些文件。

文件可能具有以下优先级:

  • 低优先级– 低优先级
  • 普通优先级– 中等优先级
  • 高优先级– 高优先级

文件设置

要访问特定文件的配置,请右击所需设置的文件或点击旁边的 ,然后选择设置

向译员展示的标题

为文件设置更具有描述性的标题,以向译员提供额外的详细信息。

注意: 文件标题只在 Crowdin UI 中显示,实际文件不会重命名。

导出文件

在生成的档案中定义文件名或完整路径,使用可用的占位符来指示导出内容的结构。

例如,您希望在将带有乌克兰语翻译的源文件 Overview.csv 在将其与应用程序集成之前命名为 Overview.ukrainian.csv。 在这种情况下,您需要将导出翻译后生成的文件设置为以下内容:Overview.%language%.csv

默认情况下,Crowdin 在文件导出时添加 Crowdin 语言代码。 如果需要在整个项目中为特定语言指定自定义导出格式,请设置语言映射

解析器配置

某些文件格式允许您配置导入和导出行为。 在这种情况下,文件的设置对话框还将包含解析器配置选项卡。

Read more about Parser configuration.

文件目标语言

默认情况下,源文件可翻译为项目的所有目标语言。 在文件目标语言中,取消选择不应翻译成的语言旁边的文件的复选框,然后点击保存

文件上下文

为译员添加一个附加的上下文或说明,以便更好地理解如何翻译一个文件。 可以使用纯文本或 Markdown。 提供的上下文将在编辑器的文件上下文标签中对译员可见。

备注:文件上下文仅适用于基于文件的项目。

文件上下文

重命名文件

To change the file’s name, right-click on the necessary file or click next to it and select Rename.

检查进度

您可以检查所需分支、文件夹或文件的翻译和审批进度。 Right-click on the needed branch, folder or file, and select the Progress. To see how many words are translated and approved for each language, hover over the progress bar. To open the selected file in the Editor, click on the needed language. To download translations for the chosen file, select the required languages, and click Build & Download. Optionally, you can select Preserve folder hierarchy for export to export translation files along with the folders they’re stored in Crowdin.

更新源文件

如果您向其中一个源文件添加了一些新字符串,您需要更新它以使新添加的字符串对翻译员可见。 Click Update next to the needed file and select the new file on your machine.

如果修改了某些源字符串,系统会显示一个对话框,其中包含已编辑字符串的列表。 你将能够选择要保留哪些现有翻译而不进行更改(当前字符串列)以及是否要保留或移除批准。 其他更改的字符串的翻译将被删除。

恢复上一个版本

每次更新源文件时,都会创建一个新的修订版本。 要将文件恢复到以前的版本,请点击版本列中所需文件的编号。 In the appeared dialog, select the revision you want to restore your file to and click Restore next to it.

分支及文件夹

You can create folders and branches in Sources > Files with New Folder and New Version Branch buttons.

文件夹代表您的内容结构,而分支有助于管理内容的不同版本。

Usually, branches in Crowdin are created automatically if you use GitHub, GitLab, or other VCS integration. 不过,如果您需要手动创建分支,请确保首先上传主分支,因为所有其他分支将被视为功能分支。 Duplicates might be managed in Settings > Import > Source Strings by choosing the corresponding option for Duplicate Strings.

字符串管理

你可以通过原文 > 字符串查看项目的所有字符串并管理字符串设置。

更改字符串可见性

如果某些字符串包含不应翻译的数据(例如占位符、其他技术实体),您可以对翻译员隐藏它们。 如需隐藏:

  1. Open your project and go to Sources > Strings.
  2. 选择必要的字符串。
  3. 点击 隐藏

字符串筛选

By default, all source strings of the project are displayed in Sources > Strings. If necessary, you can filter out strings using the available filter options (Issues: Show All, With Unresolved Issues, Without Unresolved Issues; Comments: Show All, With Comments, Without Comments; Screenshots: Show All, With Screenshots, Without Screenshots; Visibility: Show All, Hidden and Visible) and project labels.

字符串编辑

您可以向字符串添加上下文并设置最大值。翻译的长度。
一旦超出翻译限制,系统会通知贡献者翻译应该更短。

Some file formats allow editing (adding, deleting, and modifying) of the source texts and string identifiers directly in Crowdin so you can do the necessary corrections without updating the source file via Sources > Files. 检查下面的完整列表:

  • Android XML
  • iOS 字符串
  • JSON
  • i18next 框架下的 JSON
  • XLIFF 1.2
  • XLIFF 2.0
  • Angular XLF
  • GNU Gettext PO
  • 虚幻引擎 Gettext PO
  • YAML
  • RESX
  • CSV
  • ARB
  • Java 属性
  • 属性 Play
  • 属性 XML

To edit some particular word or phrase that appears in multiple source strings, you can use the Find & Replace feature in Sources > Strings.

注意:当编辑一组字符串(Android XML 的字符串数组,XLIFF 的段)中包含的字符串的标识符时,除已编辑的字符串外,所有组字符串的现有翻译都将被删除。

标签

在项目中使用标签可以轻松地向字符串添加上下文或按某些主题组织它们。 Labels are also useful while creating translation and proofreading tasks or searching for specific strings in the Editor with the help of Advanced Filter.

管理项目标签

若要创建、编辑或删除项目标签,请遵循以下步骤:

  1. Open your project and go to Sources > Strings.
  2. 点击 标签 旁边的下拉菜单,并选择 管理项目标签
  3. 在出现的对话框中,添加新标签、编辑或删除现有标签。

将标签添加到字符串

有几种可能的方法可以向字符串添加标签。

  • 通过编辑字符串对话框一次向一个字符串添加标签
    • Click Edit on the string in the list
    • 标签字段中选择所需的标签
    • 单击 保存

  • Add labels to multiple strings via the Manage Strings Labels dialog
    • 选择要添加相同标签的几个字符串
    • 单击 标签
    • Select needed labels in the Labels to be added field
    • 单击 保存

  • 使用专用标签列将标签添加到 CSV 和 XLSX 文件中的源字符串。

    Read more about Configuring Columns for Import for XLSX and CSV Files

    注意:通过初始 CSV/XLSX 文件上传添加到项目的字符串标签在以下文件更新期间不会被覆盖或删除。

Changing Scheme for CSV and XLSX Files

CSV 和 XLSX 等文件格式可能需要更改最初配置的方案。 通常,当您向 Crowdin 项目添加新的目标语言时可能需要它。

Read more about changing the scheme for CSV and XLSX files.

另请参阅

本文是否有帮助?