You are here

function _yr_verdata_translatable in Yr Weatherdata 6.2

Same name and namespace in other branches
  1. 7 yr_verdata.module \_yr_verdata_translatable()

Function for making some of the strings contained in the xml feed translatable to any language.

1 call to _yr_verdata_translatable()
yr_verdata_generate in ./yr_verdata.module
Function for generating a forecast for a location. This function should only be called after having checked if there is an up-to-date cache available, as this will load and parse an xml-file, possibly getting it from a remote host first, which is…

File

./yr_verdata.module, line 997
yr_verdata.module This file contains the code for getting the forecast from yr.no and displaying it on a Drupal site.

Code

function _yr_verdata_translatable() {
  return array(
    'Seat of government' => t('Seat of government'),
    'Region' => t('Region'),
    'Regional capital' => t('Regional capital'),
    'Capital' => t('Capital'),
    'City' => t('City'),
    'City - large town' => t('City - large town'),
    'City - small town' => t('City - small town'),
    'Small town' => t('Small town'),
    'Municipality' => t('Municipality'),
    'Populated place' => t('Populated place'),
    'Section of populated place' => t('Section of populated place'),
    'Village' => t('Village'),
    'Village area' => t('Village area'),
    'Beach' => t('Beach'),
    'Lake' => t('Lake'),
    'Mountain' => t('Mountain'),
    'Airport' => t('Airport'),
    'Railway station' => t('Railway station'),
    'Light house' => t('Light house'),
    'Power station' => t('Power station'),
    'Quay' => t('Quay'),
    'Church' => t('Church'),
    'Hut' => t('Hut'),
    'Housing estate' => t('Housing estate'),
  );
}