GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - MarketSquare/robotframework-seleniumlibrary-translation: Provides translation for robotframework-seleniumlibrary

BranchesTags
Open more actions menu

Latest commit

 

History

199 Commits
199 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
atest
atest
 
 
robotframework_seleniumlibrary_translation
robotframework_seleniumlibrary_translation
 
 
utest
utest
 
 
.gitignore
.gitignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pyproject.toml
pyproject.toml
 
 
requirements-dev.txt
requirements-dev.txt
 
 
tasks.py
tasks.py
 
 

Repository files navigation

SeleniumLibrary localisation project

This project contains localizations for the Robot Framework SeleniumLibrary:

  • Finnish
  • French
  • German
  • Spanish

New languages can be added by creating a translation_xx.json file and adding its definition to init.py. Replace xx with the language code.

This project uses SeleniumLibrary Python plugin API to provide translation_xx.json file for the Seleniumlibrary. SeleniumLibrary searches Python plugins by using naming convention: robotframework_seleniumlibrary_translation. This module fulfils the SeleniumLibrary translation API and provides get_language method. The method return a list of dictionaries:

[
    {"language": "fi", "path": "/path/to/translation_fi.json"},
    {"language": "fr", "path": "/path/to/translation_fr.json"},
    {"language": "de", "path": "/path/to/translation_de.json"},
    {"language": "es", "path": "/path/to/translation_es.json"}
]

Which SeleniumLibrary will use to match correct translation from all the found Python plugins. Language search is enabled when SeleniumLibrary is imported with:

*** Settings ***
Library    SeleniumLibrary    language=fi

For French, use language=fr:

*** Settings ***
Library    SeleniumLibrary    language=fr

*** Test Cases ***
Close Browsers In French
    Fermer tous les navigateurs

For German, use language=de:

*** Settings ***
Library    SeleniumLibrary    language=de

For Spanish, use language=es:

*** Settings ***
Library    SeleniumLibrary    language=es

*** Test Cases ***
Close Browsers In Spanish
    Cerrar todos los navegadores

Detect changes in documentation

The translation_xx.json contains sha256 sum, which is generated by the SeleniumLibrary. The sha256 is the checksum of the original documentation of the SeleniumLibrary documentation. The checksum is used by selib translation --compare robotframework_seleniumlibrary_translation/translation_fi.json command to compare the library documentation with the translation file. The command lists keywords that need updating or are missing. Use translation_fr.json to check French, translation_de.json to check German, and translation_es.json to check Spanish.

About

Provides translation for robotframework-seleniumlibrary

Topics

robotframeworktestingtranslation

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

2 stars

Watchers

2 watching

Forks

5 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.