bind: bind

Description Usage Arguments Details Value Examples

View source: R/bind.R

Description

Assigns a file, based on its name or a named parameter, to a language and a domain. The base name of a file is composed by a domain and language code separated by non-letters. A language code starts with a two (ISO 639-1) letter code.

Usage

1

Arguments

...

list: list of parameters

Details

The result can be used by readPofile. If called with no parameters then the internal set of test files is given back.

Value

a data frame with: lang, the assigned language, domain, the assigned domain, iso639, the identified language, and file, the filename

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
options('gettext.lang'='en')
bind('myproject_de.po')
bind(de='myproject.po')
bind(de=c('myproject1.po', 'myproject2.po'))
bind(de=c('myproject1_de.po', 'myproject2_de.po'), 
         en=c('myproject1_en.po', 'myproject2_en.po'))
files <- c("myproject_de.po", 
           "intl/for_use_owncloud_impress_cs_CZ.po",
           "intl/ibalsa-master-zh_HK.po",
           "spirit-po/test1.po")
bind(files)
bind()

sigbertklinke/gettext documentation built on Feb. 17, 2020, 10:37 a.m.