Coder Social home page Coder Social logo

langtool-interface-in-dict's Introduction

1C:Language Tool 1.2 for 1C:EDT 2022.1 Demo example

This example shows how to use translation of a language user interface, Romanian in this example, of 1C applicaiton in *.lsdict single files (localized strings dictionary). Common dictionary contains non-context and single translations for each source string.

If some source interface string contains in several objects - translation will be the same in each object. To set dfferent translation of some source string in some object - use context storage insead of dictionary.

Settings

Key point is to setup editing translation storage as common dictionary - it stores in LangToolInterfaceInDict/.settings/translation_storages.yml (translation storage settings config file)

edit:
  presentation: Default editing storage
  storages:
  - dictionary:common-interface
read:
- dictionary:common-interface
dictionary:
  common-interface:
    presentation: Interface common translations
    format: dict
    file_extension: lsdict
    file_path: src/common
    read_only: false
    feature_filter:
      interface: ONLY

All translation from English into Romanian (as example) will be stored in single file: LangToolInterfaceInDict.Romanian/src/common_ro.lsdict as Source=Translation (Key=Value) pairs.

Translated application

In general case, You don't need to generate new project (generate configuration/application) to get translation - simply export your porject into Infobase. All interface languages (external languages) will exported into 1C:Enterprise xml files and deploied into Infobase.

See example of export in xml-export folder.

Generate translated DT project

In some cases you might need to generate 1C:EDT source porject with all translation burned down in source code.

Use context menu in 1C Navigator on project: Translations -> Translate configuration - setup translated project settings:

  1. Set different name of translated project
  2. Leave Default language the same as in source project
  3. Leave Script variant the same as in source project
  4. Add interface lanuages that should be included into translated project.

langtool-interface-in-dict's People

Watchers

 avatar

langtool-interface-in-dict's Issues

Экспорт в XML

1C:EDT 2023.3.5
LT 1.5.0

На этом проекте при экспорте в XML через командную строку - переводы не попадают в результат.

c:\work>ring edt workspace export --project c:\work\LangTool-interface-in-dict\LangToolInterfaceInDict --configuration-files c:\work\xml --workspace-location c:\work\ci\workspace_LT

image

Удалось добиться ожидаемого результата только после того, как скопировал содержимое папки LangToolInterfaceInDict.Romanian/src в папку LangToolInterfaceInDict/src

Если есть более "прямой" способ экспорта в XML без потери переводов, то просьба добавить скрипт в этот проект.

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.