yawn: language failsafe

This commit is contained in:
copycat-killer 2014-05-08 15:10:57 +02:00
parent c580e13015
commit 90623d2e5d
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ local localizations_path = project_path .. 'localizations/'
local icon_path = project_path .. 'icons/'
local api_url = 'http://weather.yahooapis.com/forecastrss'
local units_set = '?u=c&w=' -- Default is Celsius
local language = string.match(os.getenv("LANG"), "(%S*$*)[.]")
local language = string.match(os.getenv("LANG"), "(%S*$*)[.]") or "en_US" -- if LANG is not set
local weather_data = nil
local notification = nil
local city_id = nil