________________________________________________________________________

This file is part of Logtalk <https://logtalk.org/>  
Copyright 1998-2021 Paulo Moura <pmoura@logtalk.org>  
SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
________________________________________________________________________


% start by loading the example:

| ?- logtalk_load(encodings(loader)).
...


% query the table of "Hello world!" messages:

| ?- babel::hello_world(Code, Text).

Code = el
Text = 'Γειάσου κόσμος!' ;

Code = en
Text = 'Hello world!' ;

Code = es
Text = '¡Hola mundo!' ;

Code = ja
Text = 'こんにちは世界!' ;

Code = ko
Text = '여보세요 세계!' ;

Code = nl
Text = 'Hallo wereld!' ;

Code = pt
Text = 'Olá mundo!' ;

Code = ru
Text = 'Здравствулте! мир!' ;

Code = zh
Text = '你好世界!'

Yes


% query the table of names:

| ?- latin::name(Name).

Name = 'António Simões' ;

Name = 'Cátia Conceição' ;

Name = 'João Raínho' ;

Name = 'Luís Araújo'

Yes


% query the table of countries:

| ?- asian::country(Country, Name, Capital).

Name = '中国'
Capital = '北京'
Country = china ;

Name = '日本'
Capital = '東京'
Country = japan ;

Name = 'Монгол Улс'
Capital = 'Улаанбатаар'
Country = mongolia ? ;

Name = '臺灣'
Capital = '臺北'
Country = taiwan ;

Name = 'Тоҷикистон'
Capital = 'Душанбе'
Country = tajikistan

Yes


% query the table of greek mythology divinities:

| ?- mythology::divinity(English, Greek).
Greek = 'Ηρα'
English = hera ? ;

Greek = 'Καλυψω'
English = kalypso ? ;

Greek = 'Μορφευς'
English = morpheus ? ;

Greek = 'Ποσειδων'
English = poseidon ? ;

Greek = 'Ζευς'
English = zeus

Yes
