Weather Underground - Version 2.1.1

Version Description

on August 25, 2015 = * Fixed: WordPress 4.3 compatibility * Added: Display any errors while fetching forecasts to administrators * Updated: Polish translation (thanks Cezary!) and Brazilian Portuguese (thanks Filipe!) * Removed unused <thead> code in table-horizontal.html template * Updated: Twig template loader to version 1.21 from 1.18.1

Download this release

Release Info

Developer katzwebdesign
Plugin Icon 128x128 Weather Underground
Version 2.1.1
Comparing to
See all releases

Code changes from version 2.1 to 2.1.1

Files changed (218) hide show
  1. inc/class-widget.php +22 -5
  2. languages/wunderground-ach.mo +0 -0
  3. languages/wunderground-ach.po +52 -49
  4. languages/wunderground-bg_BG.mo +0 -0
  5. languages/wunderground-bg_BG.po +52 -49
  6. languages/wunderground-bs_BA.mo +0 -0
  7. languages/wunderground-bs_BA.po +52 -49
  8. languages/wunderground-ca.mo +0 -0
  9. languages/wunderground-ca.po +52 -49
  10. languages/wunderground-de_DE.mo +0 -0
  11. languages/wunderground-de_DE.po +52 -49
  12. languages/wunderground-el.mo +0 -0
  13. languages/wunderground-el.po +51 -48
  14. languages/wunderground-en_CA.mo +0 -0
  15. languages/wunderground-en_CA.po +663 -0
  16. languages/wunderground-en_US.mo +0 -0
  17. languages/wunderground-en_US.po +52 -49
  18. languages/wunderground-es.mo +0 -0
  19. languages/wunderground-es.po +664 -0
  20. languages/wunderground-es_AR.mo +0 -0
  21. languages/wunderground-es_AR.po +663 -0
  22. languages/wunderground-fa.mo +0 -0
  23. languages/wunderground-fa.po +52 -49
  24. languages/wunderground-fr.mo +0 -0
  25. languages/wunderground-fr.po +52 -49
  26. languages/wunderground-he_IL.mo +0 -0
  27. languages/wunderground-he_IL.po +52 -49
  28. languages/wunderground-is.mo +0 -0
  29. languages/wunderground-is.po +53 -50
  30. languages/wunderground-it_IT.mo +0 -0
  31. languages/wunderground-it_IT.po +671 -0
  32. languages/wunderground-lt_LT.mo +0 -0
  33. languages/wunderground-lt_LT.po +52 -49
  34. languages/wunderground-nb_NO.mo +0 -0
  35. languages/wunderground-nb_NO.po +52 -49
  36. languages/wunderground-pl.mo +0 -0
  37. languages/wunderground-pl.po +663 -0
  38. languages/wunderground-pl_PL.mo +0 -0
  39. languages/wunderground-pl_PL.po +120 -116
  40. languages/wunderground-pt_BR.mo +0 -0
  41. languages/wunderground-pt_BR.po +86 -81
  42. languages/wunderground-pt_PT.mo +0 -0
  43. languages/wunderground-pt_PT.po +663 -0
  44. languages/wunderground-ro_RO.mo +0 -0
  45. languages/wunderground-ro_RO.po +51 -48
  46. languages/wunderground-sl.mo +0 -0
  47. languages/wunderground-sl.po +52 -49
  48. languages/wunderground-sl_SI.mo +0 -0
  49. languages/wunderground-sl_SI.po +52 -49
  50. languages/wunderground-sq.mo +0 -0
  51. languages/wunderground-sq.po +51 -48
  52. languages/wunderground-sv.mo +0 -0
  53. languages/wunderground-sv.po +663 -0
  54. languages/wunderground.mo +0 -0
  55. languages/wunderground.po +50 -47
  56. readme.txt +9 -2
  57. templates/table-horizontal.html +0 -11
  58. vendor/composer/installed.json +11 -7
  59. vendor/twig/twig/.travis.yml +30 -23
  60. vendor/twig/twig/CHANGELOG +29 -0
  61. vendor/twig/twig/composer.json +5 -1
  62. vendor/twig/twig/doc/advanced.rst +38 -0
  63. vendor/twig/twig/doc/api.rst +25 -9
  64. vendor/twig/twig/doc/deprecated.rst +33 -0
  65. vendor/twig/twig/doc/filters/batch.rst +6 -0
  66. vendor/twig/twig/doc/functions/source.rst +11 -0
  67. vendor/twig/twig/doc/internals.rst +1 -1
  68. vendor/twig/twig/doc/intro.rst +5 -1
  69. vendor/twig/twig/doc/recipes.rst +70 -7
  70. vendor/twig/twig/doc/tags/if.rst +10 -2
  71. vendor/twig/twig/doc/tags/macro.rst +3 -0
  72. vendor/twig/twig/doc/tags/spaceless.rst +1 -1
  73. vendor/twig/twig/doc/tags/use.rst +1 -1
  74. vendor/twig/twig/doc/templates.rst +15 -2
  75. vendor/twig/twig/ext/twig/php_twig.h +1 -1
  76. vendor/twig/twig/ext/twig/twig.c +73 -17
  77. vendor/twig/twig/lib/Twig/Autoloader.php +6 -0
  78. vendor/twig/twig/lib/Twig/BaseNodeVisitor.php +62 -0
  79. vendor/twig/twig/lib/Twig/Compiler.php +1 -2
  80. vendor/twig/twig/lib/Twig/Environment.php +52 -44
  81. vendor/twig/twig/lib/Twig/ExpressionParser.php +32 -2
  82. vendor/twig/twig/lib/Twig/Extension/Core.php +109 -81
  83. vendor/twig/twig/lib/Twig/Extension/Debug.php +1 -1
  84. vendor/twig/twig/lib/Twig/Extension/Escaper.php +14 -3
  85. vendor/twig/twig/lib/Twig/Extension/Profiler.php +2 -2
  86. vendor/twig/twig/lib/Twig/Extension/Sandbox.php +1 -1
  87. vendor/twig/twig/lib/Twig/Filter.php +7 -4
  88. vendor/twig/twig/lib/Twig/Filter/Function.php +3 -0
  89. vendor/twig/twig/lib/Twig/Filter/Method.php +3 -0
  90. vendor/twig/twig/lib/Twig/Filter/Node.php +3 -0
  91. vendor/twig/twig/lib/Twig/FilterCallableInterface.php +1 -0
  92. vendor/twig/twig/lib/Twig/FilterInterface.php +1 -0
  93. vendor/twig/twig/lib/Twig/Function.php +5 -2
  94. vendor/twig/twig/lib/Twig/Function/Function.php +3 -0
  95. vendor/twig/twig/lib/Twig/Function/Method.php +3 -0
  96. vendor/twig/twig/lib/Twig/Function/Node.php +3 -0
  97. vendor/twig/twig/lib/Twig/FunctionCallableInterface.php +1 -0
  98. vendor/twig/twig/lib/Twig/FunctionInterface.php +1 -0
  99. vendor/twig/twig/lib/Twig/Lexer.php +28 -24
  100. vendor/twig/twig/lib/Twig/Loader/Array.php +0 -2
  101. vendor/twig/twig/lib/Twig/Loader/Filesystem.php +27 -7
  102. vendor/twig/twig/lib/Twig/Loader/String.php +2 -0
  103. vendor/twig/twig/lib/Twig/LoaderInterface.php +3 -2
  104. vendor/twig/twig/lib/Twig/Node.php +19 -17
  105. vendor/twig/twig/lib/Twig/Node/CheckSecurity.php +3 -3
  106. vendor/twig/twig/lib/Twig/Node/Embed.php +2 -2
  107. vendor/twig/twig/lib/Twig/Node/Expression/BlockReference.php +3 -3
  108. vendor/twig/twig/lib/Twig/Node/Expression/Call.php +39 -2
  109. vendor/twig/twig/lib/Twig/Node/Expression/Filter.php +3 -0
  110. vendor/twig/twig/lib/Twig/Node/Expression/Function.php +3 -0
  111. vendor/twig/twig/lib/Twig/Node/Expression/Name.php +9 -1
  112. vendor/twig/twig/lib/Twig/Node/Expression/Parent.php +3 -3
  113. vendor/twig/twig/lib/Twig/Node/Expression/Test.php +3 -0
  114. vendor/twig/twig/lib/Twig/Node/For.php +1 -1
  115. vendor/twig/twig/lib/Twig/Node/If.php +1 -1
  116. vendor/twig/twig/lib/Twig/Node/Import.php +2 -2
  117. vendor/twig/twig/lib/Twig/Node/Include.php +2 -2
  118. vendor/twig/twig/lib/Twig/Node/Macro.php +43 -16
  119. vendor/twig/twig/lib/Twig/Node/Module.php +16 -31
  120. vendor/twig/twig/lib/Twig/Node/SandboxedPrint.php +2 -0
  121. vendor/twig/twig/lib/Twig/NodeTraverser.php +3 -2
  122. vendor/twig/twig/lib/Twig/NodeVisitor/Escaper.php +5 -15
  123. vendor/twig/twig/lib/Twig/NodeVisitor/Optimizer.php +12 -8
  124. vendor/twig/twig/lib/Twig/NodeVisitor/SafeAnalysis.php +18 -3
  125. vendor/twig/twig/lib/Twig/NodeVisitor/Sandbox.php +5 -15
  126. vendor/twig/twig/lib/Twig/Parser.php +16 -7
  127. vendor/twig/twig/lib/Twig/Profiler/Dumper/Html.php +1 -1
  128. vendor/twig/twig/lib/Twig/Profiler/Node/EnterProfile.php +3 -3
  129. vendor/twig/twig/lib/Twig/Profiler/NodeVisitor/Profiler.php +3 -3
  130. vendor/twig/twig/lib/Twig/Profiler/Profile.php +1 -1
  131. vendor/twig/twig/lib/Twig/SimpleFilter.php +24 -6
  132. vendor/twig/twig/lib/Twig/SimpleFunction.php +22 -4
  133. vendor/twig/twig/lib/Twig/SimpleTest.php +18 -0
  134. vendor/twig/twig/lib/Twig/Template.php +71 -17
  135. vendor/twig/twig/lib/Twig/TemplateInterface.php +2 -2
  136. vendor/twig/twig/lib/Twig/Test.php +3 -0
  137. vendor/twig/twig/lib/Twig/Test/Function.php +3 -0
  138. vendor/twig/twig/lib/Twig/Test/IntegrationTestCase.php +37 -7
  139. vendor/twig/twig/lib/Twig/Test/Method.php +3 -0
  140. vendor/twig/twig/lib/Twig/Test/Node.php +3 -0
  141. vendor/twig/twig/lib/Twig/Test/NodeTestCase.php +1 -1
  142. vendor/twig/twig/lib/Twig/TestCallableInterface.php +1 -0
  143. vendor/twig/twig/lib/Twig/TestInterface.php +1 -0
  144. vendor/twig/twig/lib/Twig/Token.php +15 -15
  145. vendor/twig/twig/lib/Twig/TokenParser.php +2 -2
  146. vendor/twig/twig/lib/Twig/TokenParser/AutoEscape.php +2 -0
  147. vendor/twig/twig/lib/Twig/TokenParser/Block.php +1 -1
  148. vendor/twig/twig/lib/Twig/TokenParser/From.php +4 -0
  149. vendor/twig/twig/lib/Twig/TokenParser/Macro.php +1 -1
  150. vendor/twig/twig/lib/Twig/TokenParser/Set.php +2 -2
  151. vendor/twig/twig/lib/Twig/TokenParserBroker.php +6 -1
  152. vendor/twig/twig/lib/Twig/TokenParserBrokerInterface.php +1 -0
  153. vendor/twig/twig/lib/Twig/TokenParserInterface.php +2 -2
  154. vendor/twig/twig/lib/Twig/TokenStream.php +7 -8
  155. vendor/twig/twig/lib/Twig/Util/DeprecationCollector.php +82 -0
  156. vendor/twig/twig/lib/Twig/Util/TemplateDirIterator.php +26 -0
  157. vendor/twig/twig/phpunit.xml.dist +1 -1
  158. vendor/twig/twig/test/Twig/Tests/AutoloaderTest.php +3 -0
  159. vendor/twig/twig/test/Twig/Tests/CompilerTest.php +2 -2
  160. vendor/twig/twig/test/Twig/Tests/EnvironmentTest.php +11 -7
  161. vendor/twig/twig/test/Twig/Tests/ErrorTest.php +1 -1
  162. vendor/twig/twig/test/Twig/Tests/Extension/CoreTest.php +22 -22
  163. vendor/twig/twig/test/Twig/Tests/Extension/SandboxTest.php +7 -7
  164. vendor/twig/twig/test/Twig/Tests/Fixtures/autoescape/filename.test +18 -0
  165. vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/multiline_array_with_undefined_variable.test +18 -0
  166. vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/multiline_array_with_undefined_variable_again.test +18 -0
  167. vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/multiline_function_with_undefined_variable.test +12 -0
  168. vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/multiline_function_with_unknown_argument.test +9 -0
  169. vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/multiline_tag_with_undefined_variable.test +12 -0
  170. vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/undefined_parent.test +8 -0
  171. vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/negative_numbers.test +18 -0
  172. vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/unary_macro_arguments.test +22 -0
  173. vendor/twig/twig/test/Twig/Tests/Fixtures/filters/{batch_float.php → batch_float.test} +2 -4
  174. vendor/twig/twig/test/Twig/Tests/Fixtures/filters/split_utf8.test +24 -0
  175. vendor/twig/twig/test/Twig/Tests/Fixtures/filters/urlencode_deprecated.test +16 -0
  176. vendor/twig/twig/test/Twig/Tests/Fixtures/functions/recursive_block_with_inheritance.test +21 -0
  177. vendor/twig/twig/test/Twig/Tests/Fixtures/regression/combined_debug_info.test +15 -0
  178. vendor/twig/twig/test/Twig/Tests/Fixtures/regression/multi_word_tests.test +10 -0
  179. vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/strategy.test +0 -6
  180. vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/block_expr.test +32 -0
  181. vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/block_expr2.test +34 -0
  182. vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/extends_as_array_with_empty_name.test +12 -0
  183. vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/extends_as_array_with_null_name.test +12 -0
  184. vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/multiple_dynamic.test +22 -0
  185. vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/super_globals.test +14 -0
  186. vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/inheritance.test +25 -0
  187. vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/inheritance2.test +24 -0
  188. vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/parent_block.test +24 -0
  189. vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/parent_block2.test +24 -0
  190. vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/parent_block3.test +38 -0
  191. vendor/twig/twig/test/Twig/Tests/Fixtures/tests/in.test +3 -1
  192. vendor/twig/twig/test/Twig/Tests/IntegrationTest.php +2 -2
  193. vendor/twig/twig/test/Twig/Tests/LexerTest.php +25 -25
  194. vendor/twig/twig/test/Twig/Tests/Loader/FilesystemTest.php +2 -2
  195. vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/array_inheritance_empty_parent.html.twig +3 -0
  196. vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/array_inheritance_nonexistent_parent.html.twig +3 -0
  197. vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/array_inheritance_null_parent.html.twig +3 -0
  198. vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/array_inheritance_valid_parent.html.twig +3 -0
  199. vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/parent.html.twig +1 -0
  200. vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/spare_parent.html.twig +1 -0
  201. vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/named_quater/named_absolute.html +1 -0
  202. vendor/twig/twig/test/Twig/Tests/NativeExtensionTest.php +2 -2
  203. vendor/twig/twig/test/Twig/Tests/Node/Expression/CallTest.php +15 -1
  204. vendor/twig/twig/test/Twig/Tests/Node/Expression/FilterTest.php +34 -1
  205. vendor/twig/twig/test/Twig/Tests/Node/Expression/FunctionTest.php +25 -2
  206. vendor/twig/twig/test/Twig/Tests/Node/Expression/NameTest.php +2 -4
  207. vendor/twig/twig/test/Twig/Tests/Node/Expression/PHP53/FilterInclude.php +1 -1
  208. vendor/twig/twig/test/Twig/Tests/Node/Expression/PHP53/FunctionInclude.php +1 -1
  209. vendor/twig/twig/test/Twig/Tests/Node/Expression/PHP53/TestInclude.php +1 -1
  210. vendor/twig/twig/test/Twig/Tests/Node/Expression/TestTest.php +26 -0
  211. vendor/twig/twig/test/Twig/Tests/Node/MacroTest.php +10 -1
  212. vendor/twig/twig/test/Twig/Tests/Node/ModuleTest.php +1 -1
  213. vendor/twig/twig/test/Twig/Tests/Node/SandboxedModuleTest.php +0 -173
  214. vendor/twig/twig/test/Twig/Tests/ParserTest.php +5 -5
  215. vendor/twig/twig/test/Twig/Tests/Profiler/Dumper/AbstractTest.php +82 -26
  216. vendor/twig/twig/test/Twig/Tests/TemplateTest.php +67 -49
  217. vendor/twig/twig/test/Twig/Tests/escapingTest.php +102 -101
  218. wunderground.php +3 -2
inc/class-widget.php CHANGED
@@ -40,12 +40,12 @@ class Wunderground_Forecast_Widget extends WP_Widget {
40
 
41
  $widget_ops = array(
42
  'classname' => 'wunderground',
43
- 'description' => __( 'Add a Wunderground.com forecast')
44
  );
45
 
46
  $control_options = array( 'width' => 450 ); // Min-width of widgets config with expanded sidebar
47
 
48
- parent::WP_Widget( false, __('Wunderground'), $widget_ops, $control_options );
49
  }
50
 
51
  /**
@@ -98,6 +98,9 @@ class Wunderground_Forecast_Widget extends WP_Widget {
98
 
99
  // PWS is offline or something.
100
  if( !empty( $data['wunderground']->response->error )) {
 
 
 
101
  do_action('wunderground_log_debug', 'There was an error in the Wunderground response:', $data['wunderground']->response->error );
102
  return;
103
  }
@@ -116,6 +119,20 @@ class Wunderground_Forecast_Widget extends WP_Widget {
116
  echo $after_widget;
117
  }
118
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
119
  function getLocation() {
120
 
121
  $location_data = $this->instance['location_data'];
@@ -177,7 +194,7 @@ class Wunderground_Forecast_Widget extends WP_Widget {
177
 
178
  $days_select = wunderground_render_select($this->get_field_name('numdays'), $this->get_field_id('numdays'), array( 1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10 ), $numdays);
179
 
180
- echo sprintf('<label for="%s"><h3>%s</h3> %s</label>', $this->get_field_id('numdays'), __('# of Days in Forecast'), $days_select);
181
 
182
  ?>
183
  <p>
@@ -238,11 +255,11 @@ class Wunderground_Forecast_Widget extends WP_Widget {
238
  $boxes = array(
239
  'search' => array(
240
  'label' => __('Search Form', 'wunderground'),
241
- 'description' => __('Allow searching weather forecasts.')
242
  ),
243
  'daynames' => array(
244
  'label' => __('Weekday Labels', 'wunderground'),
245
- 'description' => __('Show the names of the days of the week.')
246
  ),
247
  'date' => array(
248
  'label' => __('Date', 'wunderground'),
40
 
41
  $widget_ops = array(
42
  'classname' => 'wunderground',
43
+ 'description' => __( 'Add a Wunderground.com forecast', 'wunderground')
44
  );
45
 
46
  $control_options = array( 'width' => 450 ); // Min-width of widgets config with expanded sidebar
47
 
48
+ parent::__construct( 'wunderground', __('Wunderground', 'wunderground'), $widget_ops, $control_options );
49
  }
50
 
51
  /**
98
 
99
  // PWS is offline or something.
100
  if( !empty( $data['wunderground']->response->error )) {
101
+
102
+ $this->maybe_display_error( $data['wunderground']->response->error );
103
+
104
  do_action('wunderground_log_debug', 'There was an error in the Wunderground response:', $data['wunderground']->response->error );
105
  return;
106
  }
119
  echo $after_widget;
120
  }
121
 
122
+ /**
123
+ * If the user is logged in, display the error message
124
+ * @param stdClass $error
125
+ */
126
+ function maybe_display_error( $error ) {
127
+
128
+ if( !current_user_can( 'manage_options') || !is_object( $error ) || empty( $error->type ) ) {
129
+ return;
130
+ }
131
+
132
+ echo '<h4>' . esc_html( sprintf( __( 'There was an error fetching the forecast: %s', 'wunderground' ), $error->type ) ). '</h4>';
133
+
134
+ }
135
+
136
  function getLocation() {
137
 
138
  $location_data = $this->instance['location_data'];
194
 
195
  $days_select = wunderground_render_select($this->get_field_name('numdays'), $this->get_field_id('numdays'), array( 1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10 ), $numdays);
196
 
197
+ echo sprintf('<label for="%s"><h3>%s</h3> %s</label>', $this->get_field_id('numdays'), __('# of Days in Forecast', 'wunderground'), $days_select);
198
 
199
  ?>
200
  <p>
255
  $boxes = array(
256
  'search' => array(
257
  'label' => __('Search Form', 'wunderground'),
258
+ 'description' => __('Allow searching weather forecasts.', 'wunderground')
259
  ),
260
  'daynames' => array(
261
  'label' => __('Weekday Labels', 'wunderground'),
262
+ 'description' => __('Show the names of the days of the week.', 'wunderground')
263
  ),
264
  'date' => array(
265
  'label' => __('Date', 'wunderground'),
languages/wunderground-ach.mo CHANGED
Binary file
languages/wunderground-ach.po CHANGED
@@ -3,16 +3,16 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
7
- "PO-Revision-Date: 2014-06-06 15:48+0000\n"
8
- "Last-Translator: Katz Web Services, Inc. <support@katz.co>\n"
9
- "Language-Team: Acoli (http://www.transifex.com/projects/p/wunderground/language/ach/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: ach\n"
14
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
15
- "X-Generator: Poedit 1.7beta3\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
@@ -114,172 +114,175 @@ msgstr ""
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
- #: inc/class-widget.php:152
 
 
 
 
 
118
  msgid "Title"
119
  msgstr ""
120
 
121
- #: inc/class-widget.php:153
122
  msgid "Leave empty to hide the widget title."
123
  msgstr ""
124
 
125
- #: inc/class-widget.php:159
126
  msgid "Location"
127
  msgstr ""
128
 
129
- #: inc/class-widget.php:160
130
  msgid "Locations will autoload, but you may also define custom locations."
131
  msgstr ""
132
 
133
- #: inc/class-widget.php:161
134
  msgid "Enter the name of a location."
135
  msgstr ""
136
 
137
- #: inc/class-widget.php:168
138
  msgid "Location Title"
139
  msgstr ""
140
 
141
- #: inc/class-widget.php:169
142
  msgid "Change how the location is displayed in the widget search field."
143
  msgstr ""
144
 
145
- #: inc/class-widget.php:170
146
  msgid "Leave empty to use the location name."
147
  msgstr ""
148
 
149
- #: inc/class-widget.php:171
150
  msgid ""
151
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
152
  "set the Location Title as \"Denver\", which is simpler."
153
  msgstr ""
154
 
155
- #: inc/class-widget.php:180
156
  msgid "# of Days in Forecast"
157
  msgstr ""
158
 
159
- #: inc/class-widget.php:186
160
  msgid "Include Current Conditions"
161
  msgstr ""
162
 
163
- #: inc/class-widget.php:187
164
  msgid "Add the current conditions to the forecast."
165
  msgstr ""
166
 
167
- #: inc/class-widget.php:193
168
  msgid "Include Night Forecasts"
169
  msgstr ""
170
 
171
- #: inc/class-widget.php:194
172
  msgid "This will result in double the number of forecasts shown."
173
  msgstr ""
174
 
175
- #: inc/class-widget.php:200
176
  msgid "Icon Set"
177
  msgstr ""
178
 
179
- #: inc/class-widget.php:201
180
  msgid ""
181
  "Choose the look and feel of the images that will represent the weather."
182
  msgstr ""
183
 
184
- #: inc/class-widget.php:229
185
  msgid "Widget Template"
186
  msgstr ""
187
 
188
- #: inc/class-widget.php:230
189
  msgid "Choose how you would like to display the forecast."
190
  msgstr ""
191
 
192
- #: inc/class-widget.php:235
193
  msgid "Show in Forecast"
194
  msgstr ""
195
 
196
- #: inc/class-widget.php:240
197
  msgid "Search Form"
198
  msgstr ""
199
 
200
- #: inc/class-widget.php:241
201
  msgid "Allow searching weather forecasts."
202
  msgstr ""
203
 
204
- #: inc/class-widget.php:244
205
  msgid "Weekday Labels"
206
  msgstr ""
207
 
208
- #: inc/class-widget.php:245
209
  msgid "Show the names of the days of the week."
210
  msgstr ""
211
 
212
- #: inc/class-widget.php:248
213
  msgid "Date"
214
  msgstr ""
215
 
216
- #: inc/class-widget.php:249
217
  msgid "Display the date numerically (\"09/14\")."
218
  msgstr ""
219
 
220
- #: inc/class-widget.php:252
221
  msgid "Weather Icon"
222
  msgstr ""
223
 
224
- #: inc/class-widget.php:253
225
  msgid "Icon representing the forecast conditions."
226
  msgstr ""
227
 
228
- #: inc/class-widget.php:256
229
  msgid "Chance of Rain"
230
  msgstr ""
231
 
232
- #: inc/class-widget.php:257
233
  msgid "Display the percent chance of rain."
234
  msgstr ""
235
 
236
- #: inc/class-widget.php:260
237
  msgid "High & Low Temp"
238
  msgstr ""
239
 
240
- #: inc/class-widget.php:261
241
  msgid "Show the high & low temperatures for forecast."
242
  msgstr ""
243
 
244
- #: inc/class-widget.php:264
245
  msgid "Condition Title"
246
  msgstr ""
247
 
248
- #: inc/class-widget.php:265
249
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
250
  msgstr ""
251
 
252
- #: inc/class-widget.php:268
253
  msgid "Forecast Text"
254
  msgstr ""
255
 
256
- #: inc/class-widget.php:269
257
  msgid "Display a description of the forecast, normally in sentence format."
258
  msgstr ""
259
 
260
- #: inc/class-widget.php:272
261
  msgid "Weather Alerts &amp; Warnings"
262
  msgstr ""
263
 
264
- #: inc/class-widget.php:273
265
- msgid ""
266
- "This functionality is currently not working; we are working with "
267
- "Wunderground.com to restore it."
268
  msgstr ""
269
 
270
- #: inc/class-widget.php:289
271
  msgid "Forecast Language"
272
  msgstr ""
273
 
274
- #: inc/class-widget.php:300
275
  msgid "Measurements"
276
  msgstr ""
277
 
278
- #: inc/class-widget.php:303
279
  msgid "Fahrenheit &amp; Inches"
280
  msgstr ""
281
 
282
- #: inc/class-widget.php:306
283
  msgid "Celsius &amp; Meters"
284
  msgstr ""
285
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
+ "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: Acoli (http://www.transifex.com/katzwebservices/wunderground/language/ach/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: ach\n"
14
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
  msgid "Title"
124
  msgstr ""
125
 
126
+ #: inc/class-widget.php:170
127
  msgid "Leave empty to hide the widget title."
128
  msgstr ""
129
 
130
+ #: inc/class-widget.php:176
131
  msgid "Location"
132
  msgstr ""
133
 
134
+ #: inc/class-widget.php:177
135
  msgid "Locations will autoload, but you may also define custom locations."
136
  msgstr ""
137
 
138
+ #: inc/class-widget.php:178
139
  msgid "Enter the name of a location."
140
  msgstr ""
141
 
142
+ #: inc/class-widget.php:185
143
  msgid "Location Title"
144
  msgstr ""
145
 
146
+ #: inc/class-widget.php:186
147
  msgid "Change how the location is displayed in the widget search field."
148
  msgstr ""
149
 
150
+ #: inc/class-widget.php:187
151
  msgid "Leave empty to use the location name."
152
  msgstr ""
153
 
154
+ #: inc/class-widget.php:188
155
  msgid ""
156
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
  "set the Location Title as \"Denver\", which is simpler."
158
  msgstr ""
159
 
160
+ #: inc/class-widget.php:197
161
  msgid "# of Days in Forecast"
162
  msgstr ""
163
 
164
+ #: inc/class-widget.php:203
165
  msgid "Include Current Conditions"
166
  msgstr ""
167
 
168
+ #: inc/class-widget.php:204
169
  msgid "Add the current conditions to the forecast."
170
  msgstr ""
171
 
172
+ #: inc/class-widget.php:210
173
  msgid "Include Night Forecasts"
174
  msgstr ""
175
 
176
+ #: inc/class-widget.php:211
177
  msgid "This will result in double the number of forecasts shown."
178
  msgstr ""
179
 
180
+ #: inc/class-widget.php:217
181
  msgid "Icon Set"
182
  msgstr ""
183
 
184
+ #: inc/class-widget.php:218
185
  msgid ""
186
  "Choose the look and feel of the images that will represent the weather."
187
  msgstr ""
188
 
189
+ #: inc/class-widget.php:246
190
  msgid "Widget Template"
191
  msgstr ""
192
 
193
+ #: inc/class-widget.php:247
194
  msgid "Choose how you would like to display the forecast."
195
  msgstr ""
196
 
197
+ #: inc/class-widget.php:252
198
  msgid "Show in Forecast"
199
  msgstr ""
200
 
201
+ #: inc/class-widget.php:257
202
  msgid "Search Form"
203
  msgstr ""
204
 
205
+ #: inc/class-widget.php:258
206
  msgid "Allow searching weather forecasts."
207
  msgstr ""
208
 
209
+ #: inc/class-widget.php:261
210
  msgid "Weekday Labels"
211
  msgstr ""
212
 
213
+ #: inc/class-widget.php:262
214
  msgid "Show the names of the days of the week."
215
  msgstr ""
216
 
217
+ #: inc/class-widget.php:265
218
  msgid "Date"
219
  msgstr ""
220
 
221
+ #: inc/class-widget.php:266
222
  msgid "Display the date numerically (\"09/14\")."
223
  msgstr ""
224
 
225
+ #: inc/class-widget.php:269
226
  msgid "Weather Icon"
227
  msgstr ""
228
 
229
+ #: inc/class-widget.php:270
230
  msgid "Icon representing the forecast conditions."
231
  msgstr ""
232
 
233
+ #: inc/class-widget.php:273
234
  msgid "Chance of Rain"
235
  msgstr ""
236
 
237
+ #: inc/class-widget.php:274
238
  msgid "Display the percent chance of rain."
239
  msgstr ""
240
 
241
+ #: inc/class-widget.php:277
242
  msgid "High & Low Temp"
243
  msgstr ""
244
 
245
+ #: inc/class-widget.php:278
246
  msgid "Show the high & low temperatures for forecast."
247
  msgstr ""
248
 
249
+ #: inc/class-widget.php:281
250
  msgid "Condition Title"
251
  msgstr ""
252
 
253
+ #: inc/class-widget.php:282
254
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
  msgstr ""
256
 
257
+ #: inc/class-widget.php:285
258
  msgid "Forecast Text"
259
  msgstr ""
260
 
261
+ #: inc/class-widget.php:286
262
  msgid "Display a description of the forecast, normally in sentence format."
263
  msgstr ""
264
 
265
+ #: inc/class-widget.php:289
266
  msgid "Weather Alerts &amp; Warnings"
267
  msgstr ""
268
 
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
 
 
271
  msgstr ""
272
 
273
+ #: inc/class-widget.php:306
274
  msgid "Forecast Language"
275
  msgstr ""
276
 
277
+ #: inc/class-widget.php:317
278
  msgid "Measurements"
279
  msgstr ""
280
 
281
+ #: inc/class-widget.php:320
282
  msgid "Fahrenheit &amp; Inches"
283
  msgstr ""
284
 
285
+ #: inc/class-widget.php:323
286
  msgid "Celsius &amp; Meters"
287
  msgstr ""
288
 
languages/wunderground-bg_BG.mo CHANGED
Binary file
languages/wunderground-bg_BG.po CHANGED
@@ -3,16 +3,16 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
7
- "PO-Revision-Date: 2014-12-04 20:12+0000\n"
8
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
- "Language-Team: Bulgarian (Bulgaria) (http://www.transifex.com/projects/p/wunderground/language/bg_BG/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: bg_BG\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
- "X-Generator: Poedit 1.7beta3\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
@@ -114,172 +114,175 @@ msgstr "Добавяне на прогноза от Wunderground.com"
114
  msgid "Wunderground"
115
  msgstr "Wunderground"
116
 
117
- #: inc/class-widget.php:152
 
 
 
 
 
118
  msgid "Title"
119
  msgstr "Заглавие"
120
 
121
- #: inc/class-widget.php:153
122
  msgid "Leave empty to hide the widget title."
123
  msgstr "Оставете празно, за да скриете заглавието на уиджета."
124
 
125
- #: inc/class-widget.php:159
126
  msgid "Location"
127
  msgstr "Местоположение"
128
 
129
- #: inc/class-widget.php:160
130
  msgid "Locations will autoload, but you may also define custom locations."
131
  msgstr "Местоположенията се зареждат автоматично, но можете да зададете и индивидуални."
132
 
133
- #: inc/class-widget.php:161
134
  msgid "Enter the name of a location."
135
  msgstr "Въведете име на местоположението."
136
 
137
- #: inc/class-widget.php:168
138
  msgid "Location Title"
139
  msgstr "Заглавие на местоположението"
140
 
141
- #: inc/class-widget.php:169
142
  msgid "Change how the location is displayed in the widget search field."
143
  msgstr "Промяна на начина, по който се показва местоположението в полето за търсене на уиджета."
144
 
145
- #: inc/class-widget.php:170
146
  msgid "Leave empty to use the location name."
147
  msgstr "Оставете празно, за да използвате текста от местоположение."
148
 
149
- #: inc/class-widget.php:171
150
  msgid ""
151
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
152
  "set the Location Title as \"Denver\", which is simpler."
153
  msgstr "Пример: ако местоположението е \"София, България\", но предпочитате да бъде по-просто, напишете \"София\"."
154
 
155
- #: inc/class-widget.php:180
156
  msgid "# of Days in Forecast"
157
  msgstr "# дни в прогнозата"
158
 
159
- #: inc/class-widget.php:186
160
  msgid "Include Current Conditions"
161
  msgstr "Да включва Времето в момента"
162
 
163
- #: inc/class-widget.php:187
164
  msgid "Add the current conditions to the forecast."
165
  msgstr "Добавяне на Времето в момента в прогнозата."
166
 
167
- #: inc/class-widget.php:193
168
  msgid "Include Night Forecasts"
169
  msgstr "Включване на Нощни прогнози"
170
 
171
- #: inc/class-widget.php:194
172
  msgid "This will result in double the number of forecasts shown."
173
  msgstr "Това ще удвои броя на показваните прогнози."
174
 
175
- #: inc/class-widget.php:200
176
  msgid "Icon Set"
177
  msgstr "Икони"
178
 
179
- #: inc/class-widget.php:201
180
  msgid ""
181
  "Choose the look and feel of the images that will represent the weather."
182
  msgstr "Изберете дизайна на иконите, чрез които ще се представя времето."
183
 
184
- #: inc/class-widget.php:229
185
  msgid "Widget Template"
186
  msgstr "Темплейт на джаджата"
187
 
188
- #: inc/class-widget.php:230
189
  msgid "Choose how you would like to display the forecast."
190
  msgstr "Изберете как бихте желали да се показва прогнозата."
191
 
192
- #: inc/class-widget.php:235
193
  msgid "Show in Forecast"
194
  msgstr "Показване в прогнозата"
195
 
196
- #: inc/class-widget.php:240
197
  msgid "Search Form"
198
  msgstr "Форма за търсене"
199
 
200
- #: inc/class-widget.php:241
201
  msgid "Allow searching weather forecasts."
202
  msgstr "Позволи търсене на прогнози за времето."
203
 
204
- #: inc/class-widget.php:244
205
  msgid "Weekday Labels"
206
  msgstr "Ден от седмицата"
207
 
208
- #: inc/class-widget.php:245
209
  msgid "Show the names of the days of the week."
210
  msgstr "Показване на имената на дните от седмицата."
211
 
212
- #: inc/class-widget.php:248
213
  msgid "Date"
214
  msgstr "Дата"
215
 
216
- #: inc/class-widget.php:249
217
  msgid "Display the date numerically (\"09/14\")."
218
  msgstr "Датата да се показва числено (\"09/14\")."
219
 
220
- #: inc/class-widget.php:252
221
  msgid "Weather Icon"
222
  msgstr "Икона за времето"
223
 
224
- #: inc/class-widget.php:253
225
  msgid "Icon representing the forecast conditions."
226
  msgstr "Иконата показва прогнозните усливия."
227
 
228
- #: inc/class-widget.php:256
229
  msgid "Chance of Rain"
230
  msgstr "Шанс за валеж"
231
 
232
- #: inc/class-widget.php:257
233
  msgid "Display the percent chance of rain."
234
  msgstr "Показване на шанс за преваляване в проценти."
235
 
236
- #: inc/class-widget.php:260
237
  msgid "High & Low Temp"
238
  msgstr "Максимална и минимална температура"
239
 
240
- #: inc/class-widget.php:261
241
  msgid "Show the high & low temperatures for forecast."
242
  msgstr "Скриване на максималната и минималата температури в прогнозата."
243
 
244
- #: inc/class-widget.php:264
245
  msgid "Condition Title"
246
  msgstr "Заглавие на състоянието"
247
 
248
- #: inc/class-widget.php:265
249
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
250
  msgstr "Кратко описание на времето (\"Слънчево\", \"Разкъсана облачност\", и тн.)."
251
 
252
- #: inc/class-widget.php:268
253
  msgid "Forecast Text"
254
  msgstr "Текст на прогнозата"
255
 
256
- #: inc/class-widget.php:269
257
  msgid "Display a description of the forecast, normally in sentence format."
258
  msgstr "Показване на пояснение към прогнозата, обикновено в 1 изречение."
259
 
260
- #: inc/class-widget.php:272
261
  msgid "Weather Alerts &amp; Warnings"
262
  msgstr "Предупреждения и сигнали за времето"
263
 
264
- #: inc/class-widget.php:273
265
- msgid ""
266
- "This functionality is currently not working; we are working with "
267
- "Wunderground.com to restore it."
268
- msgstr "Тази функционалноср временно не е налична. Работим с Wunderground.com за отстраняването на проблема."
269
 
270
- #: inc/class-widget.php:289
271
  msgid "Forecast Language"
272
  msgstr "Език на прогнозата"
273
 
274
- #: inc/class-widget.php:300
275
  msgid "Measurements"
276
  msgstr "Мерни единици"
277
 
278
- #: inc/class-widget.php:303
279
  msgid "Fahrenheit &amp; Inches"
280
  msgstr "Фаренхайт &amp; Инчове"
281
 
282
- #: inc/class-widget.php:306
283
  msgid "Celsius &amp; Meters"
284
  msgstr "Целзии &amp; Метри"
285
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: Bulgarian (Bulgaria) (http://www.transifex.com/katzwebservices/wunderground/language/bg_BG/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: bg_BG\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
114
  msgid "Wunderground"
115
  msgstr "Wunderground"
116
 
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
  msgid "Title"
124
  msgstr "Заглавие"
125
 
126
+ #: inc/class-widget.php:170
127
  msgid "Leave empty to hide the widget title."
128
  msgstr "Оставете празно, за да скриете заглавието на уиджета."
129
 
130
+ #: inc/class-widget.php:176
131
  msgid "Location"
132
  msgstr "Местоположение"
133
 
134
+ #: inc/class-widget.php:177
135
  msgid "Locations will autoload, but you may also define custom locations."
136
  msgstr "Местоположенията се зареждат автоматично, но можете да зададете и индивидуални."
137
 
138
+ #: inc/class-widget.php:178
139
  msgid "Enter the name of a location."
140
  msgstr "Въведете име на местоположението."
141
 
142
+ #: inc/class-widget.php:185
143
  msgid "Location Title"
144
  msgstr "Заглавие на местоположението"
145
 
146
+ #: inc/class-widget.php:186
147
  msgid "Change how the location is displayed in the widget search field."
148
  msgstr "Промяна на начина, по който се показва местоположението в полето за търсене на уиджета."
149
 
150
+ #: inc/class-widget.php:187
151
  msgid "Leave empty to use the location name."
152
  msgstr "Оставете празно, за да използвате текста от местоположение."
153
 
154
+ #: inc/class-widget.php:188
155
  msgid ""
156
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
  "set the Location Title as \"Denver\", which is simpler."
158
  msgstr "Пример: ако местоположението е \"София, България\", но предпочитате да бъде по-просто, напишете \"София\"."
159
 
160
+ #: inc/class-widget.php:197
161
  msgid "# of Days in Forecast"
162
  msgstr "# дни в прогнозата"
163
 
164
+ #: inc/class-widget.php:203
165
  msgid "Include Current Conditions"
166
  msgstr "Да включва Времето в момента"
167
 
168
+ #: inc/class-widget.php:204
169
  msgid "Add the current conditions to the forecast."
170
  msgstr "Добавяне на Времето в момента в прогнозата."
171
 
172
+ #: inc/class-widget.php:210
173
  msgid "Include Night Forecasts"
174
  msgstr "Включване на Нощни прогнози"
175
 
176
+ #: inc/class-widget.php:211
177
  msgid "This will result in double the number of forecasts shown."
178
  msgstr "Това ще удвои броя на показваните прогнози."
179
 
180
+ #: inc/class-widget.php:217
181
  msgid "Icon Set"
182
  msgstr "Икони"
183
 
184
+ #: inc/class-widget.php:218
185
  msgid ""
186
  "Choose the look and feel of the images that will represent the weather."
187
  msgstr "Изберете дизайна на иконите, чрез които ще се представя времето."
188
 
189
+ #: inc/class-widget.php:246
190
  msgid "Widget Template"
191
  msgstr "Темплейт на джаджата"
192
 
193
+ #: inc/class-widget.php:247
194
  msgid "Choose how you would like to display the forecast."
195
  msgstr "Изберете как бихте желали да се показва прогнозата."
196
 
197
+ #: inc/class-widget.php:252
198
  msgid "Show in Forecast"
199
  msgstr "Показване в прогнозата"
200
 
201
+ #: inc/class-widget.php:257
202
  msgid "Search Form"
203
  msgstr "Форма за търсене"
204
 
205
+ #: inc/class-widget.php:258
206
  msgid "Allow searching weather forecasts."
207
  msgstr "Позволи търсене на прогнози за времето."
208
 
209
+ #: inc/class-widget.php:261
210
  msgid "Weekday Labels"
211
  msgstr "Ден от седмицата"
212
 
213
+ #: inc/class-widget.php:262
214
  msgid "Show the names of the days of the week."
215
  msgstr "Показване на имената на дните от седмицата."
216
 
217
+ #: inc/class-widget.php:265
218
  msgid "Date"
219
  msgstr "Дата"
220
 
221
+ #: inc/class-widget.php:266
222
  msgid "Display the date numerically (\"09/14\")."
223
  msgstr "Датата да се показва числено (\"09/14\")."
224
 
225
+ #: inc/class-widget.php:269
226
  msgid "Weather Icon"
227
  msgstr "Икона за времето"
228
 
229
+ #: inc/class-widget.php:270
230
  msgid "Icon representing the forecast conditions."
231
  msgstr "Иконата показва прогнозните усливия."
232
 
233
+ #: inc/class-widget.php:273
234
  msgid "Chance of Rain"
235
  msgstr "Шанс за валеж"
236
 
237
+ #: inc/class-widget.php:274
238
  msgid "Display the percent chance of rain."
239
  msgstr "Показване на шанс за преваляване в проценти."
240
 
241
+ #: inc/class-widget.php:277
242
  msgid "High & Low Temp"
243
  msgstr "Максимална и минимална температура"
244
 
245
+ #: inc/class-widget.php:278
246
  msgid "Show the high & low temperatures for forecast."
247
  msgstr "Скриване на максималната и минималата температури в прогнозата."
248
 
249
+ #: inc/class-widget.php:281
250
  msgid "Condition Title"
251
  msgstr "Заглавие на състоянието"
252
 
253
+ #: inc/class-widget.php:282
254
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
  msgstr "Кратко описание на времето (\"Слънчево\", \"Разкъсана облачност\", и тн.)."
256
 
257
+ #: inc/class-widget.php:285
258
  msgid "Forecast Text"
259
  msgstr "Текст на прогнозата"
260
 
261
+ #: inc/class-widget.php:286
262
  msgid "Display a description of the forecast, normally in sentence format."
263
  msgstr "Показване на пояснение към прогнозата, обикновено в 1 изречение."
264
 
265
+ #: inc/class-widget.php:289
266
  msgid "Weather Alerts &amp; Warnings"
267
  msgstr "Предупреждения и сигнали за времето"
268
 
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
271
+ msgstr ""
 
 
272
 
273
+ #: inc/class-widget.php:306
274
  msgid "Forecast Language"
275
  msgstr "Език на прогнозата"
276
 
277
+ #: inc/class-widget.php:317
278
  msgid "Measurements"
279
  msgstr "Мерни единици"
280
 
281
+ #: inc/class-widget.php:320
282
  msgid "Fahrenheit &amp; Inches"
283
  msgstr "Фаренхайт &amp; Инчове"
284
 
285
+ #: inc/class-widget.php:323
286
  msgid "Celsius &amp; Meters"
287
  msgstr "Целзии &amp; Метри"
288
 
languages/wunderground-bs_BA.mo CHANGED
Binary file
languages/wunderground-bs_BA.po CHANGED
@@ -4,16 +4,16 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Wunderground\n"
7
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
8
- "PO-Revision-Date: 2014-12-31 19:41+0000\n"
9
- "Last-Translator: Marko Saraba <marko.saraba@gmail.com>\n"
10
- "Language-Team: Bosnian (Bosnia and Herzegovina) (http://www.transifex.com/projects/p/wunderground/language/bs_BA/)\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "Language: bs_BA\n"
15
  "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
16
- "X-Generator: Poedit 1.7beta3\n"
17
  "X-Poedit-Basepath: ..\n"
18
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
19
  "X-Poedit-SearchPath-0: .\n"
@@ -115,172 +115,175 @@ msgstr ""
115
  msgid "Wunderground"
116
  msgstr ""
117
 
118
- #: inc/class-widget.php:152
 
 
 
 
 
119
  msgid "Title"
120
  msgstr ""
121
 
122
- #: inc/class-widget.php:153
123
  msgid "Leave empty to hide the widget title."
124
  msgstr ""
125
 
126
- #: inc/class-widget.php:159
127
  msgid "Location"
128
  msgstr ""
129
 
130
- #: inc/class-widget.php:160
131
  msgid "Locations will autoload, but you may also define custom locations."
132
  msgstr ""
133
 
134
- #: inc/class-widget.php:161
135
  msgid "Enter the name of a location."
136
  msgstr ""
137
 
138
- #: inc/class-widget.php:168
139
  msgid "Location Title"
140
  msgstr ""
141
 
142
- #: inc/class-widget.php:169
143
  msgid "Change how the location is displayed in the widget search field."
144
  msgstr ""
145
 
146
- #: inc/class-widget.php:170
147
  msgid "Leave empty to use the location name."
148
  msgstr ""
149
 
150
- #: inc/class-widget.php:171
151
  msgid ""
152
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
153
  "set the Location Title as \"Denver\", which is simpler."
154
  msgstr ""
155
 
156
- #: inc/class-widget.php:180
157
  msgid "# of Days in Forecast"
158
  msgstr ""
159
 
160
- #: inc/class-widget.php:186
161
  msgid "Include Current Conditions"
162
  msgstr ""
163
 
164
- #: inc/class-widget.php:187
165
  msgid "Add the current conditions to the forecast."
166
  msgstr ""
167
 
168
- #: inc/class-widget.php:193
169
  msgid "Include Night Forecasts"
170
  msgstr ""
171
 
172
- #: inc/class-widget.php:194
173
  msgid "This will result in double the number of forecasts shown."
174
  msgstr ""
175
 
176
- #: inc/class-widget.php:200
177
  msgid "Icon Set"
178
  msgstr ""
179
 
180
- #: inc/class-widget.php:201
181
  msgid ""
182
  "Choose the look and feel of the images that will represent the weather."
183
  msgstr ""
184
 
185
- #: inc/class-widget.php:229
186
  msgid "Widget Template"
187
  msgstr ""
188
 
189
- #: inc/class-widget.php:230
190
  msgid "Choose how you would like to display the forecast."
191
  msgstr ""
192
 
193
- #: inc/class-widget.php:235
194
  msgid "Show in Forecast"
195
  msgstr ""
196
 
197
- #: inc/class-widget.php:240
198
  msgid "Search Form"
199
  msgstr ""
200
 
201
- #: inc/class-widget.php:241
202
  msgid "Allow searching weather forecasts."
203
  msgstr ""
204
 
205
- #: inc/class-widget.php:244
206
  msgid "Weekday Labels"
207
  msgstr ""
208
 
209
- #: inc/class-widget.php:245
210
  msgid "Show the names of the days of the week."
211
  msgstr ""
212
 
213
- #: inc/class-widget.php:248
214
  msgid "Date"
215
  msgstr ""
216
 
217
- #: inc/class-widget.php:249
218
  msgid "Display the date numerically (\"09/14\")."
219
  msgstr ""
220
 
221
- #: inc/class-widget.php:252
222
  msgid "Weather Icon"
223
  msgstr ""
224
 
225
- #: inc/class-widget.php:253
226
  msgid "Icon representing the forecast conditions."
227
  msgstr ""
228
 
229
- #: inc/class-widget.php:256
230
  msgid "Chance of Rain"
231
  msgstr ""
232
 
233
- #: inc/class-widget.php:257
234
  msgid "Display the percent chance of rain."
235
  msgstr ""
236
 
237
- #: inc/class-widget.php:260
238
  msgid "High & Low Temp"
239
  msgstr ""
240
 
241
- #: inc/class-widget.php:261
242
  msgid "Show the high & low temperatures for forecast."
243
  msgstr ""
244
 
245
- #: inc/class-widget.php:264
246
  msgid "Condition Title"
247
  msgstr ""
248
 
249
- #: inc/class-widget.php:265
250
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
251
  msgstr ""
252
 
253
- #: inc/class-widget.php:268
254
  msgid "Forecast Text"
255
  msgstr ""
256
 
257
- #: inc/class-widget.php:269
258
  msgid "Display a description of the forecast, normally in sentence format."
259
  msgstr ""
260
 
261
- #: inc/class-widget.php:272
262
  msgid "Weather Alerts &amp; Warnings"
263
  msgstr ""
264
 
265
- #: inc/class-widget.php:273
266
- msgid ""
267
- "This functionality is currently not working; we are working with "
268
- "Wunderground.com to restore it."
269
  msgstr ""
270
 
271
- #: inc/class-widget.php:289
272
  msgid "Forecast Language"
273
  msgstr ""
274
 
275
- #: inc/class-widget.php:300
276
  msgid "Measurements"
277
  msgstr ""
278
 
279
- #: inc/class-widget.php:303
280
  msgid "Fahrenheit &amp; Inches"
281
  msgstr ""
282
 
283
- #: inc/class-widget.php:306
284
  msgid "Celsius &amp; Meters"
285
  msgstr ""
286
 
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Wunderground\n"
7
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
8
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
9
+ "Last-Translator: Zachary Katz <zack@katz.co>\n"
10
+ "Language-Team: Bosnian (Bosnia and Herzegovina) (http://www.transifex.com/katzwebservices/wunderground/language/bs_BA/)\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "Language: bs_BA\n"
15
  "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
16
+ "X-Generator: Poedit 1.7.1\n"
17
  "X-Poedit-Basepath: ..\n"
18
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
19
  "X-Poedit-SearchPath-0: .\n"
115
  msgid "Wunderground"
116
  msgstr ""
117
 
118
+ #: inc/class-widget.php:132
119
+ #, php-format
120
+ msgid "There was an error fetching the forecast: %s"
121
+ msgstr ""
122
+
123
+ #: inc/class-widget.php:169
124
  msgid "Title"
125
  msgstr ""
126
 
127
+ #: inc/class-widget.php:170
128
  msgid "Leave empty to hide the widget title."
129
  msgstr ""
130
 
131
+ #: inc/class-widget.php:176
132
  msgid "Location"
133
  msgstr ""
134
 
135
+ #: inc/class-widget.php:177
136
  msgid "Locations will autoload, but you may also define custom locations."
137
  msgstr ""
138
 
139
+ #: inc/class-widget.php:178
140
  msgid "Enter the name of a location."
141
  msgstr ""
142
 
143
+ #: inc/class-widget.php:185
144
  msgid "Location Title"
145
  msgstr ""
146
 
147
+ #: inc/class-widget.php:186
148
  msgid "Change how the location is displayed in the widget search field."
149
  msgstr ""
150
 
151
+ #: inc/class-widget.php:187
152
  msgid "Leave empty to use the location name."
153
  msgstr ""
154
 
155
+ #: inc/class-widget.php:188
156
  msgid ""
157
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
158
  "set the Location Title as \"Denver\", which is simpler."
159
  msgstr ""
160
 
161
+ #: inc/class-widget.php:197
162
  msgid "# of Days in Forecast"
163
  msgstr ""
164
 
165
+ #: inc/class-widget.php:203
166
  msgid "Include Current Conditions"
167
  msgstr ""
168
 
169
+ #: inc/class-widget.php:204
170
  msgid "Add the current conditions to the forecast."
171
  msgstr ""
172
 
173
+ #: inc/class-widget.php:210
174
  msgid "Include Night Forecasts"
175
  msgstr ""
176
 
177
+ #: inc/class-widget.php:211
178
  msgid "This will result in double the number of forecasts shown."
179
  msgstr ""
180
 
181
+ #: inc/class-widget.php:217
182
  msgid "Icon Set"
183
  msgstr ""
184
 
185
+ #: inc/class-widget.php:218
186
  msgid ""
187
  "Choose the look and feel of the images that will represent the weather."
188
  msgstr ""
189
 
190
+ #: inc/class-widget.php:246
191
  msgid "Widget Template"
192
  msgstr ""
193
 
194
+ #: inc/class-widget.php:247
195
  msgid "Choose how you would like to display the forecast."
196
  msgstr ""
197
 
198
+ #: inc/class-widget.php:252
199
  msgid "Show in Forecast"
200
  msgstr ""
201
 
202
+ #: inc/class-widget.php:257
203
  msgid "Search Form"
204
  msgstr ""
205
 
206
+ #: inc/class-widget.php:258
207
  msgid "Allow searching weather forecasts."
208
  msgstr ""
209
 
210
+ #: inc/class-widget.php:261
211
  msgid "Weekday Labels"
212
  msgstr ""
213
 
214
+ #: inc/class-widget.php:262
215
  msgid "Show the names of the days of the week."
216
  msgstr ""
217
 
218
+ #: inc/class-widget.php:265
219
  msgid "Date"
220
  msgstr ""
221
 
222
+ #: inc/class-widget.php:266
223
  msgid "Display the date numerically (\"09/14\")."
224
  msgstr ""
225
 
226
+ #: inc/class-widget.php:269
227
  msgid "Weather Icon"
228
  msgstr ""
229
 
230
+ #: inc/class-widget.php:270
231
  msgid "Icon representing the forecast conditions."
232
  msgstr ""
233
 
234
+ #: inc/class-widget.php:273
235
  msgid "Chance of Rain"
236
  msgstr ""
237
 
238
+ #: inc/class-widget.php:274
239
  msgid "Display the percent chance of rain."
240
  msgstr ""
241
 
242
+ #: inc/class-widget.php:277
243
  msgid "High & Low Temp"
244
  msgstr ""
245
 
246
+ #: inc/class-widget.php:278
247
  msgid "Show the high & low temperatures for forecast."
248
  msgstr ""
249
 
250
+ #: inc/class-widget.php:281
251
  msgid "Condition Title"
252
  msgstr ""
253
 
254
+ #: inc/class-widget.php:282
255
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
256
  msgstr ""
257
 
258
+ #: inc/class-widget.php:285
259
  msgid "Forecast Text"
260
  msgstr ""
261
 
262
+ #: inc/class-widget.php:286
263
  msgid "Display a description of the forecast, normally in sentence format."
264
  msgstr ""
265
 
266
+ #: inc/class-widget.php:289
267
  msgid "Weather Alerts &amp; Warnings"
268
  msgstr ""
269
 
270
+ #: inc/class-widget.php:290
271
+ msgid "Display Severe Weather alerts and warnings."
 
 
272
  msgstr ""
273
 
274
+ #: inc/class-widget.php:306
275
  msgid "Forecast Language"
276
  msgstr ""
277
 
278
+ #: inc/class-widget.php:317
279
  msgid "Measurements"
280
  msgstr ""
281
 
282
+ #: inc/class-widget.php:320
283
  msgid "Fahrenheit &amp; Inches"
284
  msgstr ""
285
 
286
+ #: inc/class-widget.php:323
287
  msgid "Celsius &amp; Meters"
288
  msgstr ""
289
 
languages/wunderground-ca.mo CHANGED
Binary file
languages/wunderground-ca.po CHANGED
@@ -3,16 +3,16 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
7
- "PO-Revision-Date: 2014-06-06 15:48+0000\n"
8
- "Last-Translator: Katz Web Services, Inc. <support@katz.co>\n"
9
- "Language-Team: Catalan (http://www.transifex.com/projects/p/wunderground/language/ca/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: ca\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
- "X-Generator: Poedit 1.7beta3\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
@@ -114,172 +114,175 @@ msgstr ""
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
- #: inc/class-widget.php:152
 
 
 
 
 
118
  msgid "Title"
119
  msgstr ""
120
 
121
- #: inc/class-widget.php:153
122
  msgid "Leave empty to hide the widget title."
123
  msgstr ""
124
 
125
- #: inc/class-widget.php:159
126
  msgid "Location"
127
  msgstr ""
128
 
129
- #: inc/class-widget.php:160
130
  msgid "Locations will autoload, but you may also define custom locations."
131
  msgstr ""
132
 
133
- #: inc/class-widget.php:161
134
  msgid "Enter the name of a location."
135
  msgstr ""
136
 
137
- #: inc/class-widget.php:168
138
  msgid "Location Title"
139
  msgstr ""
140
 
141
- #: inc/class-widget.php:169
142
  msgid "Change how the location is displayed in the widget search field."
143
  msgstr ""
144
 
145
- #: inc/class-widget.php:170
146
  msgid "Leave empty to use the location name."
147
  msgstr ""
148
 
149
- #: inc/class-widget.php:171
150
  msgid ""
151
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
152
  "set the Location Title as \"Denver\", which is simpler."
153
  msgstr ""
154
 
155
- #: inc/class-widget.php:180
156
  msgid "# of Days in Forecast"
157
  msgstr ""
158
 
159
- #: inc/class-widget.php:186
160
  msgid "Include Current Conditions"
161
  msgstr ""
162
 
163
- #: inc/class-widget.php:187
164
  msgid "Add the current conditions to the forecast."
165
  msgstr ""
166
 
167
- #: inc/class-widget.php:193
168
  msgid "Include Night Forecasts"
169
  msgstr ""
170
 
171
- #: inc/class-widget.php:194
172
  msgid "This will result in double the number of forecasts shown."
173
  msgstr ""
174
 
175
- #: inc/class-widget.php:200
176
  msgid "Icon Set"
177
  msgstr ""
178
 
179
- #: inc/class-widget.php:201
180
  msgid ""
181
  "Choose the look and feel of the images that will represent the weather."
182
  msgstr ""
183
 
184
- #: inc/class-widget.php:229
185
  msgid "Widget Template"
186
  msgstr ""
187
 
188
- #: inc/class-widget.php:230
189
  msgid "Choose how you would like to display the forecast."
190
  msgstr ""
191
 
192
- #: inc/class-widget.php:235
193
  msgid "Show in Forecast"
194
  msgstr ""
195
 
196
- #: inc/class-widget.php:240
197
  msgid "Search Form"
198
  msgstr ""
199
 
200
- #: inc/class-widget.php:241
201
  msgid "Allow searching weather forecasts."
202
  msgstr ""
203
 
204
- #: inc/class-widget.php:244
205
  msgid "Weekday Labels"
206
  msgstr ""
207
 
208
- #: inc/class-widget.php:245
209
  msgid "Show the names of the days of the week."
210
  msgstr ""
211
 
212
- #: inc/class-widget.php:248
213
  msgid "Date"
214
  msgstr ""
215
 
216
- #: inc/class-widget.php:249
217
  msgid "Display the date numerically (\"09/14\")."
218
  msgstr ""
219
 
220
- #: inc/class-widget.php:252
221
  msgid "Weather Icon"
222
  msgstr ""
223
 
224
- #: inc/class-widget.php:253
225
  msgid "Icon representing the forecast conditions."
226
  msgstr ""
227
 
228
- #: inc/class-widget.php:256
229
  msgid "Chance of Rain"
230
  msgstr ""
231
 
232
- #: inc/class-widget.php:257
233
  msgid "Display the percent chance of rain."
234
  msgstr ""
235
 
236
- #: inc/class-widget.php:260
237
  msgid "High & Low Temp"
238
  msgstr ""
239
 
240
- #: inc/class-widget.php:261
241
  msgid "Show the high & low temperatures for forecast."
242
  msgstr ""
243
 
244
- #: inc/class-widget.php:264
245
  msgid "Condition Title"
246
  msgstr ""
247
 
248
- #: inc/class-widget.php:265
249
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
250
  msgstr ""
251
 
252
- #: inc/class-widget.php:268
253
  msgid "Forecast Text"
254
  msgstr ""
255
 
256
- #: inc/class-widget.php:269
257
  msgid "Display a description of the forecast, normally in sentence format."
258
  msgstr ""
259
 
260
- #: inc/class-widget.php:272
261
  msgid "Weather Alerts &amp; Warnings"
262
  msgstr ""
263
 
264
- #: inc/class-widget.php:273
265
- msgid ""
266
- "This functionality is currently not working; we are working with "
267
- "Wunderground.com to restore it."
268
  msgstr ""
269
 
270
- #: inc/class-widget.php:289
271
  msgid "Forecast Language"
272
  msgstr ""
273
 
274
- #: inc/class-widget.php:300
275
  msgid "Measurements"
276
  msgstr ""
277
 
278
- #: inc/class-widget.php:303
279
  msgid "Fahrenheit &amp; Inches"
280
  msgstr ""
281
 
282
- #: inc/class-widget.php:306
283
  msgid "Celsius &amp; Meters"
284
  msgstr ""
285
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
+ "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: Catalan (http://www.transifex.com/katzwebservices/wunderground/language/ca/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: ca\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
  msgid "Title"
124
  msgstr ""
125
 
126
+ #: inc/class-widget.php:170
127
  msgid "Leave empty to hide the widget title."
128
  msgstr ""
129
 
130
+ #: inc/class-widget.php:176
131
  msgid "Location"
132
  msgstr ""
133
 
134
+ #: inc/class-widget.php:177
135
  msgid "Locations will autoload, but you may also define custom locations."
136
  msgstr ""
137
 
138
+ #: inc/class-widget.php:178
139
  msgid "Enter the name of a location."
140
  msgstr ""
141
 
142
+ #: inc/class-widget.php:185
143
  msgid "Location Title"
144
  msgstr ""
145
 
146
+ #: inc/class-widget.php:186
147
  msgid "Change how the location is displayed in the widget search field."
148
  msgstr ""
149
 
150
+ #: inc/class-widget.php:187
151
  msgid "Leave empty to use the location name."
152
  msgstr ""
153
 
154
+ #: inc/class-widget.php:188
155
  msgid ""
156
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
  "set the Location Title as \"Denver\", which is simpler."
158
  msgstr ""
159
 
160
+ #: inc/class-widget.php:197
161
  msgid "# of Days in Forecast"
162
  msgstr ""
163
 
164
+ #: inc/class-widget.php:203
165
  msgid "Include Current Conditions"
166
  msgstr ""
167
 
168
+ #: inc/class-widget.php:204
169
  msgid "Add the current conditions to the forecast."
170
  msgstr ""
171
 
172
+ #: inc/class-widget.php:210
173
  msgid "Include Night Forecasts"
174
  msgstr ""
175
 
176
+ #: inc/class-widget.php:211
177
  msgid "This will result in double the number of forecasts shown."
178
  msgstr ""
179
 
180
+ #: inc/class-widget.php:217
181
  msgid "Icon Set"
182
  msgstr ""
183
 
184
+ #: inc/class-widget.php:218
185
  msgid ""
186
  "Choose the look and feel of the images that will represent the weather."
187
  msgstr ""
188
 
189
+ #: inc/class-widget.php:246
190
  msgid "Widget Template"
191
  msgstr ""
192
 
193
+ #: inc/class-widget.php:247
194
  msgid "Choose how you would like to display the forecast."
195
  msgstr ""
196
 
197
+ #: inc/class-widget.php:252
198
  msgid "Show in Forecast"
199
  msgstr ""
200
 
201
+ #: inc/class-widget.php:257
202
  msgid "Search Form"
203
  msgstr ""
204
 
205
+ #: inc/class-widget.php:258
206
  msgid "Allow searching weather forecasts."
207
  msgstr ""
208
 
209
+ #: inc/class-widget.php:261
210
  msgid "Weekday Labels"
211
  msgstr ""
212
 
213
+ #: inc/class-widget.php:262
214
  msgid "Show the names of the days of the week."
215
  msgstr ""
216
 
217
+ #: inc/class-widget.php:265
218
  msgid "Date"
219
  msgstr ""
220
 
221
+ #: inc/class-widget.php:266
222
  msgid "Display the date numerically (\"09/14\")."
223
  msgstr ""
224
 
225
+ #: inc/class-widget.php:269
226
  msgid "Weather Icon"
227
  msgstr ""
228
 
229
+ #: inc/class-widget.php:270
230
  msgid "Icon representing the forecast conditions."
231
  msgstr ""
232
 
233
+ #: inc/class-widget.php:273
234
  msgid "Chance of Rain"
235
  msgstr ""
236
 
237
+ #: inc/class-widget.php:274
238
  msgid "Display the percent chance of rain."
239
  msgstr ""
240
 
241
+ #: inc/class-widget.php:277
242
  msgid "High & Low Temp"
243
  msgstr ""
244
 
245
+ #: inc/class-widget.php:278
246
  msgid "Show the high & low temperatures for forecast."
247
  msgstr ""
248
 
249
+ #: inc/class-widget.php:281
250
  msgid "Condition Title"
251
  msgstr ""
252
 
253
+ #: inc/class-widget.php:282
254
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
  msgstr ""
256
 
257
+ #: inc/class-widget.php:285
258
  msgid "Forecast Text"
259
  msgstr ""
260
 
261
+ #: inc/class-widget.php:286
262
  msgid "Display a description of the forecast, normally in sentence format."
263
  msgstr ""
264
 
265
+ #: inc/class-widget.php:289
266
  msgid "Weather Alerts &amp; Warnings"
267
  msgstr ""
268
 
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
 
 
271
  msgstr ""
272
 
273
+ #: inc/class-widget.php:306
274
  msgid "Forecast Language"
275
  msgstr ""
276
 
277
+ #: inc/class-widget.php:317
278
  msgid "Measurements"
279
  msgstr ""
280
 
281
+ #: inc/class-widget.php:320
282
  msgid "Fahrenheit &amp; Inches"
283
  msgstr ""
284
 
285
+ #: inc/class-widget.php:323
286
  msgid "Celsius &amp; Meters"
287
  msgstr ""
288
 
languages/wunderground-de_DE.mo CHANGED
Binary file
languages/wunderground-de_DE.po CHANGED
@@ -4,16 +4,16 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Wunderground\n"
7
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
8
- "PO-Revision-Date: 2014-12-04 20:12+0000\n"
9
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
10
- "Language-Team: German (Germany) (http://www.transifex.com/projects/p/wunderground/language/de_DE/)\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "Language: de_DE\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
- "X-Generator: Poedit 1.7beta3\n"
17
  "X-Poedit-Basepath: ..\n"
18
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
19
  "X-Poedit-SearchPath-0: .\n"
@@ -115,172 +115,175 @@ msgstr "Addiere eine Wunderground.com Vorhersage"
115
  msgid "Wunderground"
116
  msgstr "Wunderground"
117
 
118
- #: inc/class-widget.php:152
 
 
 
 
 
119
  msgid "Title"
120
  msgstr "Titel"
121
 
122
- #: inc/class-widget.php:153
123
  msgid "Leave empty to hide the widget title."
124
  msgstr "Leer lassen um den Widget Titel zu verstecken"
125
 
126
- #: inc/class-widget.php:159
127
  msgid "Location"
128
  msgstr "Ort"
129
 
130
- #: inc/class-widget.php:160
131
  msgid "Locations will autoload, but you may also define custom locations."
132
  msgstr "Orte werden automatisch geladen, aber Du kannst auch eigene Orte angeben"
133
 
134
- #: inc/class-widget.php:161
135
  msgid "Enter the name of a location."
136
  msgstr "Gib den Namen eines Ortes ein"
137
 
138
- #: inc/class-widget.php:168
139
  msgid "Location Title"
140
  msgstr "Ortsbezeichnung"
141
 
142
- #: inc/class-widget.php:169
143
  msgid "Change how the location is displayed in the widget search field."
144
  msgstr "Anzeige des Ortes im Widget Suchfeld anpassen"
145
 
146
- #: inc/class-widget.php:170
147
  msgid "Leave empty to use the location name."
148
  msgstr "Leer lassen um den Ortsnamen zu benutzen."
149
 
150
- #: inc/class-widget.php:171
151
  msgid ""
152
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
153
  "set the Location Title as \"Denver\", which is simpler."
154
  msgstr "Beispiel: Wenn als Ort \"Denver, Colorado\" eingestellt ist, bevorzugst Du vielleicht \"Denver\" als einfachere Titelvariante."
155
 
156
- #: inc/class-widget.php:180
157
  msgid "# of Days in Forecast"
158
  msgstr "# Tage Vorhersage"
159
 
160
- #: inc/class-widget.php:186
161
  msgid "Include Current Conditions"
162
  msgstr "Inklusive Aktuelle Bedingungen"
163
 
164
- #: inc/class-widget.php:187
165
  msgid "Add the current conditions to the forecast."
166
  msgstr "Addiere die aktuellen Bedingungen zur Vorhersage."
167
 
168
- #: inc/class-widget.php:193
169
  msgid "Include Night Forecasts"
170
  msgstr "Inklusive Nacht Vorhersage"
171
 
172
- #: inc/class-widget.php:194
173
  msgid "This will result in double the number of forecasts shown."
174
  msgstr "Dies wird die Anzahl der angezeigten Vorhersagen verdoppeln."
175
 
176
- #: inc/class-widget.php:200
177
  msgid "Icon Set"
178
  msgstr "Symbolgruppe"
179
 
180
- #: inc/class-widget.php:201
181
  msgid ""
182
  "Choose the look and feel of the images that will represent the weather."
183
  msgstr "Wähle die Erscheinung der Bilder die das Wetter repräsentieren"
184
 
185
- #: inc/class-widget.php:229
186
  msgid "Widget Template"
187
  msgstr "Widget Template"
188
 
189
- #: inc/class-widget.php:230
190
  msgid "Choose how you would like to display the forecast."
191
  msgstr "Wähle wie die Vorhersage angezeigt werden soll."
192
 
193
- #: inc/class-widget.php:235
194
  msgid "Show in Forecast"
195
  msgstr "Zeige in Vorhersage"
196
 
197
- #: inc/class-widget.php:240
198
  msgid "Search Form"
199
  msgstr "Suchfeld"
200
 
201
- #: inc/class-widget.php:241
202
  msgid "Allow searching weather forecasts."
203
  msgstr "Erlaube die Suche nach Wettervorhersagen."
204
 
205
- #: inc/class-widget.php:244
206
  msgid "Weekday Labels"
207
  msgstr "Wochentag Label"
208
 
209
- #: inc/class-widget.php:245
210
  msgid "Show the names of the days of the week."
211
  msgstr "Zeigt die Namen der Wochentage."
212
 
213
- #: inc/class-widget.php:248
214
  msgid "Date"
215
  msgstr "Datum"
216
 
217
- #: inc/class-widget.php:249
218
  msgid "Display the date numerically (\"09/14\")."
219
  msgstr "Zeigt das Datum numerisch an (\"09/14\")."
220
 
221
- #: inc/class-widget.php:252
222
  msgid "Weather Icon"
223
  msgstr "Wettersymbol"
224
 
225
- #: inc/class-widget.php:253
226
  msgid "Icon representing the forecast conditions."
227
  msgstr "Symbol welches die Wetterbedingungen repräsentiert."
228
 
229
- #: inc/class-widget.php:256
230
  msgid "Chance of Rain"
231
  msgstr "Regenwahrscheinlichkeit"
232
 
233
- #: inc/class-widget.php:257
234
  msgid "Display the percent chance of rain."
235
  msgstr "Zeigt die Regenwahrscheinlichkeit in %."
236
 
237
- #: inc/class-widget.php:260
238
  msgid "High & Low Temp"
239
  msgstr "Höchst- und Niedrigsttemperaturen"
240
 
241
- #: inc/class-widget.php:261
242
  msgid "Show the high & low temperatures for forecast."
243
  msgstr "Zeigt die Höchst- und Niedrigsttemperaturen der Vorhersage."
244
 
245
- #: inc/class-widget.php:264
246
  msgid "Condition Title"
247
  msgstr "Bedingung Titel"
248
 
249
- #: inc/class-widget.php:265
250
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
251
  msgstr "Kurze Zusammenfassung der Bedingungen (\"Klar\", \"Teilweise bewölkt\", usw.)."
252
 
253
- #: inc/class-widget.php:268
254
  msgid "Forecast Text"
255
  msgstr "Vorhersage Text"
256
 
257
- #: inc/class-widget.php:269
258
  msgid "Display a description of the forecast, normally in sentence format."
259
  msgstr "Zeigt eine Beschreibung der Vorhersage, üblicherweise in Satzform."
260
 
261
- #: inc/class-widget.php:272
262
  msgid "Weather Alerts &amp; Warnings"
263
  msgstr "Wetter Hinweise &amp; Warnungen"
264
 
265
- #: inc/class-widget.php:273
266
- msgid ""
267
- "This functionality is currently not working; we are working with "
268
- "Wunderground.com to restore it."
269
- msgstr "Diese Funktion ist derzeit nicht möglich; wir arbeiten mit Wunderground.com um sie wiederherzustellen."
270
 
271
- #: inc/class-widget.php:289
272
  msgid "Forecast Language"
273
  msgstr "Vorhersage Sprache"
274
 
275
- #: inc/class-widget.php:300
276
  msgid "Measurements"
277
  msgstr "Messeinheiten"
278
 
279
- #: inc/class-widget.php:303
280
  msgid "Fahrenheit &amp; Inches"
281
  msgstr "Fahrenheit &amp; Inches"
282
 
283
- #: inc/class-widget.php:306
284
  msgid "Celsius &amp; Meters"
285
  msgstr "Celsius &amp; Meter"
286
 
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Wunderground\n"
7
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
8
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
9
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
10
+ "Language-Team: German (Germany) (http://www.transifex.com/katzwebservices/wunderground/language/de_DE/)\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "Language: de_DE\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "X-Generator: Poedit 1.7.1\n"
17
  "X-Poedit-Basepath: ..\n"
18
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
19
  "X-Poedit-SearchPath-0: .\n"
115
  msgid "Wunderground"
116
  msgstr "Wunderground"
117
 
118
+ #: inc/class-widget.php:132
119
+ #, php-format
120
+ msgid "There was an error fetching the forecast: %s"
121
+ msgstr ""
122
+
123
+ #: inc/class-widget.php:169
124
  msgid "Title"
125
  msgstr "Titel"
126
 
127
+ #: inc/class-widget.php:170
128
  msgid "Leave empty to hide the widget title."
129
  msgstr "Leer lassen um den Widget Titel zu verstecken"
130
 
131
+ #: inc/class-widget.php:176
132
  msgid "Location"
133
  msgstr "Ort"
134
 
135
+ #: inc/class-widget.php:177
136
  msgid "Locations will autoload, but you may also define custom locations."
137
  msgstr "Orte werden automatisch geladen, aber Du kannst auch eigene Orte angeben"
138
 
139
+ #: inc/class-widget.php:178
140
  msgid "Enter the name of a location."
141
  msgstr "Gib den Namen eines Ortes ein"
142
 
143
+ #: inc/class-widget.php:185
144
  msgid "Location Title"
145
  msgstr "Ortsbezeichnung"
146
 
147
+ #: inc/class-widget.php:186
148
  msgid "Change how the location is displayed in the widget search field."
149
  msgstr "Anzeige des Ortes im Widget Suchfeld anpassen"
150
 
151
+ #: inc/class-widget.php:187
152
  msgid "Leave empty to use the location name."
153
  msgstr "Leer lassen um den Ortsnamen zu benutzen."
154
 
155
+ #: inc/class-widget.php:188
156
  msgid ""
157
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
158
  "set the Location Title as \"Denver\", which is simpler."
159
  msgstr "Beispiel: Wenn als Ort \"Denver, Colorado\" eingestellt ist, bevorzugst Du vielleicht \"Denver\" als einfachere Titelvariante."
160
 
161
+ #: inc/class-widget.php:197
162
  msgid "# of Days in Forecast"
163
  msgstr "# Tage Vorhersage"
164
 
165
+ #: inc/class-widget.php:203
166
  msgid "Include Current Conditions"
167
  msgstr "Inklusive Aktuelle Bedingungen"
168
 
169
+ #: inc/class-widget.php:204
170
  msgid "Add the current conditions to the forecast."
171
  msgstr "Addiere die aktuellen Bedingungen zur Vorhersage."
172
 
173
+ #: inc/class-widget.php:210
174
  msgid "Include Night Forecasts"
175
  msgstr "Inklusive Nacht Vorhersage"
176
 
177
+ #: inc/class-widget.php:211
178
  msgid "This will result in double the number of forecasts shown."
179
  msgstr "Dies wird die Anzahl der angezeigten Vorhersagen verdoppeln."
180
 
181
+ #: inc/class-widget.php:217
182
  msgid "Icon Set"
183
  msgstr "Symbolgruppe"
184
 
185
+ #: inc/class-widget.php:218
186
  msgid ""
187
  "Choose the look and feel of the images that will represent the weather."
188
  msgstr "Wähle die Erscheinung der Bilder die das Wetter repräsentieren"
189
 
190
+ #: inc/class-widget.php:246
191
  msgid "Widget Template"
192
  msgstr "Widget Template"
193
 
194
+ #: inc/class-widget.php:247
195
  msgid "Choose how you would like to display the forecast."
196
  msgstr "Wähle wie die Vorhersage angezeigt werden soll."
197
 
198
+ #: inc/class-widget.php:252
199
  msgid "Show in Forecast"
200
  msgstr "Zeige in Vorhersage"
201
 
202
+ #: inc/class-widget.php:257
203
  msgid "Search Form"
204
  msgstr "Suchfeld"
205
 
206
+ #: inc/class-widget.php:258
207
  msgid "Allow searching weather forecasts."
208
  msgstr "Erlaube die Suche nach Wettervorhersagen."
209
 
210
+ #: inc/class-widget.php:261
211
  msgid "Weekday Labels"
212
  msgstr "Wochentag Label"
213
 
214
+ #: inc/class-widget.php:262
215
  msgid "Show the names of the days of the week."
216
  msgstr "Zeigt die Namen der Wochentage."
217
 
218
+ #: inc/class-widget.php:265
219
  msgid "Date"
220
  msgstr "Datum"
221
 
222
+ #: inc/class-widget.php:266
223
  msgid "Display the date numerically (\"09/14\")."
224
  msgstr "Zeigt das Datum numerisch an (\"09/14\")."
225
 
226
+ #: inc/class-widget.php:269
227
  msgid "Weather Icon"
228
  msgstr "Wettersymbol"
229
 
230
+ #: inc/class-widget.php:270
231
  msgid "Icon representing the forecast conditions."
232
  msgstr "Symbol welches die Wetterbedingungen repräsentiert."
233
 
234
+ #: inc/class-widget.php:273
235
  msgid "Chance of Rain"
236
  msgstr "Regenwahrscheinlichkeit"
237
 
238
+ #: inc/class-widget.php:274
239
  msgid "Display the percent chance of rain."
240
  msgstr "Zeigt die Regenwahrscheinlichkeit in %."
241
 
242
+ #: inc/class-widget.php:277
243
  msgid "High & Low Temp"
244
  msgstr "Höchst- und Niedrigsttemperaturen"
245
 
246
+ #: inc/class-widget.php:278
247
  msgid "Show the high & low temperatures for forecast."
248
  msgstr "Zeigt die Höchst- und Niedrigsttemperaturen der Vorhersage."
249
 
250
+ #: inc/class-widget.php:281
251
  msgid "Condition Title"
252
  msgstr "Bedingung Titel"
253
 
254
+ #: inc/class-widget.php:282
255
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
256
  msgstr "Kurze Zusammenfassung der Bedingungen (\"Klar\", \"Teilweise bewölkt\", usw.)."
257
 
258
+ #: inc/class-widget.php:285
259
  msgid "Forecast Text"
260
  msgstr "Vorhersage Text"
261
 
262
+ #: inc/class-widget.php:286
263
  msgid "Display a description of the forecast, normally in sentence format."
264
  msgstr "Zeigt eine Beschreibung der Vorhersage, üblicherweise in Satzform."
265
 
266
+ #: inc/class-widget.php:289
267
  msgid "Weather Alerts &amp; Warnings"
268
  msgstr "Wetter Hinweise &amp; Warnungen"
269
 
270
+ #: inc/class-widget.php:290
271
+ msgid "Display Severe Weather alerts and warnings."
272
+ msgstr ""
 
 
273
 
274
+ #: inc/class-widget.php:306
275
  msgid "Forecast Language"
276
  msgstr "Vorhersage Sprache"
277
 
278
+ #: inc/class-widget.php:317
279
  msgid "Measurements"
280
  msgstr "Messeinheiten"
281
 
282
+ #: inc/class-widget.php:320
283
  msgid "Fahrenheit &amp; Inches"
284
  msgstr "Fahrenheit &amp; Inches"
285
 
286
+ #: inc/class-widget.php:323
287
  msgid "Celsius &amp; Meters"
288
  msgstr "Celsius &amp; Meter"
289
 
languages/wunderground-el.mo CHANGED
Binary file
languages/wunderground-el.po CHANGED
@@ -3,16 +3,16 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
7
- "PO-Revision-Date: 2014-12-04 20:12+0000\n"
8
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
- "Language-Team: Greek (http://www.transifex.com/projects/p/wunderground/language/el/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: el\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
- "X-Generator: Poedit 1.7beta3\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
@@ -114,172 +114,175 @@ msgstr ""
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
- #: inc/class-widget.php:152
 
 
 
 
 
118
  msgid "Title"
119
  msgstr ""
120
 
121
- #: inc/class-widget.php:153
122
  msgid "Leave empty to hide the widget title."
123
  msgstr ""
124
 
125
- #: inc/class-widget.php:159
126
  msgid "Location"
127
  msgstr ""
128
 
129
- #: inc/class-widget.php:160
130
  msgid "Locations will autoload, but you may also define custom locations."
131
  msgstr ""
132
 
133
- #: inc/class-widget.php:161
134
  msgid "Enter the name of a location."
135
  msgstr ""
136
 
137
- #: inc/class-widget.php:168
138
  msgid "Location Title"
139
  msgstr ""
140
 
141
- #: inc/class-widget.php:169
142
  msgid "Change how the location is displayed in the widget search field."
143
  msgstr ""
144
 
145
- #: inc/class-widget.php:170
146
  msgid "Leave empty to use the location name."
147
  msgstr ""
148
 
149
- #: inc/class-widget.php:171
150
  msgid ""
151
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
152
  "set the Location Title as \"Denver\", which is simpler."
153
  msgstr ""
154
 
155
- #: inc/class-widget.php:180
156
  msgid "# of Days in Forecast"
157
  msgstr ""
158
 
159
- #: inc/class-widget.php:186
160
  msgid "Include Current Conditions"
161
  msgstr ""
162
 
163
- #: inc/class-widget.php:187
164
  msgid "Add the current conditions to the forecast."
165
  msgstr ""
166
 
167
- #: inc/class-widget.php:193
168
  msgid "Include Night Forecasts"
169
  msgstr ""
170
 
171
- #: inc/class-widget.php:194
172
  msgid "This will result in double the number of forecasts shown."
173
  msgstr ""
174
 
175
- #: inc/class-widget.php:200
176
  msgid "Icon Set"
177
  msgstr ""
178
 
179
- #: inc/class-widget.php:201
180
  msgid ""
181
  "Choose the look and feel of the images that will represent the weather."
182
  msgstr ""
183
 
184
- #: inc/class-widget.php:229
185
  msgid "Widget Template"
186
  msgstr ""
187
 
188
- #: inc/class-widget.php:230
189
  msgid "Choose how you would like to display the forecast."
190
  msgstr ""
191
 
192
- #: inc/class-widget.php:235
193
  msgid "Show in Forecast"
194
  msgstr ""
195
 
196
- #: inc/class-widget.php:240
197
  msgid "Search Form"
198
  msgstr ""
199
 
200
- #: inc/class-widget.php:241
201
  msgid "Allow searching weather forecasts."
202
  msgstr ""
203
 
204
- #: inc/class-widget.php:244
205
  msgid "Weekday Labels"
206
  msgstr ""
207
 
208
- #: inc/class-widget.php:245
209
  msgid "Show the names of the days of the week."
210
  msgstr ""
211
 
212
- #: inc/class-widget.php:248
213
  msgid "Date"
214
  msgstr ""
215
 
216
- #: inc/class-widget.php:249
217
  msgid "Display the date numerically (\"09/14\")."
218
  msgstr ""
219
 
220
- #: inc/class-widget.php:252
221
  msgid "Weather Icon"
222
  msgstr ""
223
 
224
- #: inc/class-widget.php:253
225
  msgid "Icon representing the forecast conditions."
226
  msgstr ""
227
 
228
- #: inc/class-widget.php:256
229
  msgid "Chance of Rain"
230
  msgstr ""
231
 
232
- #: inc/class-widget.php:257
233
  msgid "Display the percent chance of rain."
234
  msgstr ""
235
 
236
- #: inc/class-widget.php:260
237
  msgid "High & Low Temp"
238
  msgstr ""
239
 
240
- #: inc/class-widget.php:261
241
  msgid "Show the high & low temperatures for forecast."
242
  msgstr ""
243
 
244
- #: inc/class-widget.php:264
245
  msgid "Condition Title"
246
  msgstr ""
247
 
248
- #: inc/class-widget.php:265
249
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
250
  msgstr ""
251
 
252
- #: inc/class-widget.php:268
253
  msgid "Forecast Text"
254
  msgstr ""
255
 
256
- #: inc/class-widget.php:269
257
  msgid "Display a description of the forecast, normally in sentence format."
258
  msgstr ""
259
 
260
- #: inc/class-widget.php:272
261
  msgid "Weather Alerts &amp; Warnings"
262
  msgstr ""
263
 
264
- #: inc/class-widget.php:273
265
- msgid ""
266
- "This functionality is currently not working; we are working with "
267
- "Wunderground.com to restore it."
268
  msgstr ""
269
 
270
- #: inc/class-widget.php:289
271
  msgid "Forecast Language"
272
  msgstr ""
273
 
274
- #: inc/class-widget.php:300
275
  msgid "Measurements"
276
  msgstr ""
277
 
278
- #: inc/class-widget.php:303
279
  msgid "Fahrenheit &amp; Inches"
280
  msgstr ""
281
 
282
- #: inc/class-widget.php:306
283
  msgid "Celsius &amp; Meters"
284
  msgstr ""
285
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: Greek (http://www.transifex.com/katzwebservices/wunderground/language/el/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: el\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
  msgid "Title"
124
  msgstr ""
125
 
126
+ #: inc/class-widget.php:170
127
  msgid "Leave empty to hide the widget title."
128
  msgstr ""
129
 
130
+ #: inc/class-widget.php:176
131
  msgid "Location"
132
  msgstr ""
133
 
134
+ #: inc/class-widget.php:177
135
  msgid "Locations will autoload, but you may also define custom locations."
136
  msgstr ""
137
 
138
+ #: inc/class-widget.php:178
139
  msgid "Enter the name of a location."
140
  msgstr ""
141
 
142
+ #: inc/class-widget.php:185
143
  msgid "Location Title"
144
  msgstr ""
145
 
146
+ #: inc/class-widget.php:186
147
  msgid "Change how the location is displayed in the widget search field."
148
  msgstr ""
149
 
150
+ #: inc/class-widget.php:187
151
  msgid "Leave empty to use the location name."
152
  msgstr ""
153
 
154
+ #: inc/class-widget.php:188
155
  msgid ""
156
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
  "set the Location Title as \"Denver\", which is simpler."
158
  msgstr ""
159
 
160
+ #: inc/class-widget.php:197
161
  msgid "# of Days in Forecast"
162
  msgstr ""
163
 
164
+ #: inc/class-widget.php:203
165
  msgid "Include Current Conditions"
166
  msgstr ""
167
 
168
+ #: inc/class-widget.php:204
169
  msgid "Add the current conditions to the forecast."
170
  msgstr ""
171
 
172
+ #: inc/class-widget.php:210
173
  msgid "Include Night Forecasts"
174
  msgstr ""
175
 
176
+ #: inc/class-widget.php:211
177
  msgid "This will result in double the number of forecasts shown."
178
  msgstr ""
179
 
180
+ #: inc/class-widget.php:217
181
  msgid "Icon Set"
182
  msgstr ""
183
 
184
+ #: inc/class-widget.php:218
185
  msgid ""
186
  "Choose the look and feel of the images that will represent the weather."
187
  msgstr ""
188
 
189
+ #: inc/class-widget.php:246
190
  msgid "Widget Template"
191
  msgstr ""
192
 
193
+ #: inc/class-widget.php:247
194
  msgid "Choose how you would like to display the forecast."
195
  msgstr ""
196
 
197
+ #: inc/class-widget.php:252
198
  msgid "Show in Forecast"
199
  msgstr ""
200
 
201
+ #: inc/class-widget.php:257
202
  msgid "Search Form"
203
  msgstr ""
204
 
205
+ #: inc/class-widget.php:258
206
  msgid "Allow searching weather forecasts."
207
  msgstr ""
208
 
209
+ #: inc/class-widget.php:261
210
  msgid "Weekday Labels"
211
  msgstr ""
212
 
213
+ #: inc/class-widget.php:262
214
  msgid "Show the names of the days of the week."
215
  msgstr ""
216
 
217
+ #: inc/class-widget.php:265
218
  msgid "Date"
219
  msgstr ""
220
 
221
+ #: inc/class-widget.php:266
222
  msgid "Display the date numerically (\"09/14\")."
223
  msgstr ""
224
 
225
+ #: inc/class-widget.php:269
226
  msgid "Weather Icon"
227
  msgstr ""
228
 
229
+ #: inc/class-widget.php:270
230
  msgid "Icon representing the forecast conditions."
231
  msgstr ""
232
 
233
+ #: inc/class-widget.php:273
234
  msgid "Chance of Rain"
235
  msgstr ""
236
 
237
+ #: inc/class-widget.php:274
238
  msgid "Display the percent chance of rain."
239
  msgstr ""
240
 
241
+ #: inc/class-widget.php:277
242
  msgid "High & Low Temp"
243
  msgstr ""
244
 
245
+ #: inc/class-widget.php:278
246
  msgid "Show the high & low temperatures for forecast."
247
  msgstr ""
248
 
249
+ #: inc/class-widget.php:281
250
  msgid "Condition Title"
251
  msgstr ""
252
 
253
+ #: inc/class-widget.php:282
254
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
  msgstr ""
256
 
257
+ #: inc/class-widget.php:285
258
  msgid "Forecast Text"
259
  msgstr ""
260
 
261
+ #: inc/class-widget.php:286
262
  msgid "Display a description of the forecast, normally in sentence format."
263
  msgstr ""
264
 
265
+ #: inc/class-widget.php:289
266
  msgid "Weather Alerts &amp; Warnings"
267
  msgstr ""
268
 
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
 
 
271
  msgstr ""
272
 
273
+ #: inc/class-widget.php:306
274
  msgid "Forecast Language"
275
  msgstr ""
276
 
277
+ #: inc/class-widget.php:317
278
  msgid "Measurements"
279
  msgstr ""
280
 
281
+ #: inc/class-widget.php:320
282
  msgid "Fahrenheit &amp; Inches"
283
  msgstr ""
284
 
285
+ #: inc/class-widget.php:323
286
  msgid "Celsius &amp; Meters"
287
  msgstr ""
288
 
languages/wunderground-en_CA.mo ADDED
Binary file
languages/wunderground-en_CA.po ADDED
@@ -0,0 +1,663 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # Translators:
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
+ "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: English (Canada) (http://www.transifex.com/katzwebservices/wunderground/language/en_CA/)\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Language: en_CA\n"
14
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
+ "X-Poedit-Basepath: ..\n"
17
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
+ "X-Poedit-SearchPath-0: .\n"
19
+ "X-Poedit-SourceCharset: UTF-8\n"
20
+
21
+ #: inc/class-template.php:67
22
+ #, php-format
23
+ msgid "Statement as of %s"
24
+ msgstr ""
25
+
26
+ #: inc/class-template.php:68
27
+ msgid "The location could not be found."
28
+ msgstr ""
29
+
30
+ #: inc/class-template.php:69
31
+ #, php-format
32
+ msgid "%s%%"
33
+ msgstr ""
34
+
35
+ #: inc/class-template.php:70
36
+ #, php-format
37
+ msgid "%s%% Chance of Precipitation"
38
+ msgstr ""
39
+
40
+ #: inc/class-template.php:71
41
+ msgid "Currently"
42
+ msgstr ""
43
+
44
+ #: inc/class-template.php:72
45
+ #, php-format
46
+ msgid "High %d&deg;"
47
+ msgstr ""
48
+
49
+ #: inc/class-template.php:73
50
+ #, php-format
51
+ msgid "Low %d&deg;"
52
+ msgstr ""
53
+
54
+ #: inc/class-template.php:74
55
+ #, php-format
56
+ msgid "%d&deg;"
57
+ msgstr ""
58
+
59
+ #: inc/class-template.php:75
60
+ #, php-format
61
+ msgid "View the %s forecast on Wunderground.com"
62
+ msgstr ""
63
+
64
+ #: inc/class-template.php:76
65
+ msgctxt "Weather alert issued date/time"
66
+ msgid "Issued:"
67
+ msgstr ""
68
+
69
+ #: inc/class-template.php:77
70
+ msgctxt "Weather alert expires date/time"
71
+ msgid "Expires:"
72
+ msgstr ""
73
+
74
+ #: inc/class-template.php:149
75
+ msgid "Current Conditions"
76
+ msgstr ""
77
+
78
+ #: inc/class-template.php:150
79
+ msgid "Simple display of the current conditions."
80
+ msgstr ""
81
+
82
+ #: inc/class-template.php:155
83
+ msgid "Grid Forecast"
84
+ msgstr ""
85
+
86
+ #: inc/class-template.php:156
87
+ msgid "Scales to any screen size."
88
+ msgstr ""
89
+
90
+ #: inc/class-template.php:161
91
+ msgid "Details Table"
92
+ msgstr ""
93
+
94
+ #: inc/class-template.php:162
95
+ msgid ""
96
+ "Display the forecast in a table with rows. Great for in-depth forecast "
97
+ "display."
98
+ msgstr ""
99
+
100
+ #: inc/class-template.php:167
101
+ msgid "Horizontal Table"
102
+ msgstr ""
103
+
104
+ #: inc/class-template.php:168
105
+ msgid ""
106
+ "Display the forecast in a table with columns. Great for forecast summaries."
107
+ msgstr ""
108
+
109
+ #: inc/class-widget.php:43
110
+ msgid "Add a Wunderground.com forecast"
111
+ msgstr ""
112
+
113
+ #: inc/class-widget.php:48 inc/functions.php:176
114
+ msgid "Wunderground"
115
+ msgstr ""
116
+
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
+ msgid "Title"
124
+ msgstr ""
125
+
126
+ #: inc/class-widget.php:170
127
+ msgid "Leave empty to hide the widget title."
128
+ msgstr ""
129
+
130
+ #: inc/class-widget.php:176
131
+ msgid "Location"
132
+ msgstr ""
133
+
134
+ #: inc/class-widget.php:177
135
+ msgid "Locations will autoload, but you may also define custom locations."
136
+ msgstr ""
137
+
138
+ #: inc/class-widget.php:178
139
+ msgid "Enter the name of a location."
140
+ msgstr ""
141
+
142
+ #: inc/class-widget.php:185
143
+ msgid "Location Title"
144
+ msgstr ""
145
+
146
+ #: inc/class-widget.php:186
147
+ msgid "Change how the location is displayed in the widget search field."
148
+ msgstr ""
149
+
150
+ #: inc/class-widget.php:187
151
+ msgid "Leave empty to use the location name."
152
+ msgstr ""
153
+
154
+ #: inc/class-widget.php:188
155
+ msgid ""
156
+ "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
+ "set the Location Title as \"Denver\", which is simpler."
158
+ msgstr ""
159
+
160
+ #: inc/class-widget.php:197
161
+ msgid "# of Days in Forecast"
162
+ msgstr ""
163
+
164
+ #: inc/class-widget.php:203
165
+ msgid "Include Current Conditions"
166
+ msgstr ""
167
+
168
+ #: inc/class-widget.php:204
169
+ msgid "Add the current conditions to the forecast."
170
+ msgstr ""
171
+
172
+ #: inc/class-widget.php:210
173
+ msgid "Include Night Forecasts"
174
+ msgstr ""
175
+
176
+ #: inc/class-widget.php:211
177
+ msgid "This will result in double the number of forecasts shown."
178
+ msgstr ""
179
+
180
+ #: inc/class-widget.php:217
181
+ msgid "Icon Set"
182
+ msgstr ""
183
+
184
+ #: inc/class-widget.php:218
185
+ msgid ""
186
+ "Choose the look and feel of the images that will represent the weather."
187
+ msgstr ""
188
+
189
+ #: inc/class-widget.php:246
190
+ msgid "Widget Template"
191
+ msgstr ""
192
+
193
+ #: inc/class-widget.php:247
194
+ msgid "Choose how you would like to display the forecast."
195
+ msgstr ""
196
+
197
+ #: inc/class-widget.php:252
198
+ msgid "Show in Forecast"
199
+ msgstr ""
200
+
201
+ #: inc/class-widget.php:257
202
+ msgid "Search Form"
203
+ msgstr ""
204
+
205
+ #: inc/class-widget.php:258
206
+ msgid "Allow searching weather forecasts."
207
+ msgstr ""
208
+
209
+ #: inc/class-widget.php:261
210
+ msgid "Weekday Labels"
211
+ msgstr ""
212
+
213
+ #: inc/class-widget.php:262
214
+ msgid "Show the names of the days of the week."
215
+ msgstr ""
216
+
217
+ #: inc/class-widget.php:265
218
+ msgid "Date"
219
+ msgstr ""
220
+
221
+ #: inc/class-widget.php:266
222
+ msgid "Display the date numerically (\"09/14\")."
223
+ msgstr ""
224
+
225
+ #: inc/class-widget.php:269
226
+ msgid "Weather Icon"
227
+ msgstr ""
228
+
229
+ #: inc/class-widget.php:270
230
+ msgid "Icon representing the forecast conditions."
231
+ msgstr ""
232
+
233
+ #: inc/class-widget.php:273
234
+ msgid "Chance of Rain"
235
+ msgstr ""
236
+
237
+ #: inc/class-widget.php:274
238
+ msgid "Display the percent chance of rain."
239
+ msgstr ""
240
+
241
+ #: inc/class-widget.php:277
242
+ msgid "High & Low Temp"
243
+ msgstr ""
244
+
245
+ #: inc/class-widget.php:278
246
+ msgid "Show the high & low temperatures for forecast."
247
+ msgstr ""
248
+
249
+ #: inc/class-widget.php:281
250
+ msgid "Condition Title"
251
+ msgstr ""
252
+
253
+ #: inc/class-widget.php:282
254
+ msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
+ msgstr ""
256
+
257
+ #: inc/class-widget.php:285
258
+ msgid "Forecast Text"
259
+ msgstr ""
260
+
261
+ #: inc/class-widget.php:286
262
+ msgid "Display a description of the forecast, normally in sentence format."
263
+ msgstr ""
264
+
265
+ #: inc/class-widget.php:289
266
+ msgid "Weather Alerts &amp; Warnings"
267
+ msgstr ""
268
+
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
271
+ msgstr ""
272
+
273
+ #: inc/class-widget.php:306
274
+ msgid "Forecast Language"
275
+ msgstr ""
276
+
277
+ #: inc/class-widget.php:317
278
+ msgid "Measurements"
279
+ msgstr ""
280
+
281
+ #: inc/class-widget.php:320
282
+ msgid "Fahrenheit &amp; Inches"
283
+ msgstr ""
284
+
285
+ #: inc/class-widget.php:323
286
+ msgid "Celsius &amp; Meters"
287
+ msgstr ""
288
+
289
+ #: inc/functions.php:44
290
+ msgid "Weather Forecast"
291
+ msgstr ""
292
+
293
+ #: inc/functions.php:161 inc/functions.php:178
294
+ msgid "Incredible"
295
+ msgstr ""
296
+
297
+ #: inc/functions.php:162 inc/functions.php:177
298
+ msgid "Elemental"
299
+ msgstr ""
300
+
301
+ #: inc/functions.php:163 inc/functions.php:179
302
+ msgid "Helen"
303
+ msgstr ""
304
+
305
+ #: inc/functions.php:164 inc/functions.php:181
306
+ msgid "Default"
307
+ msgstr ""
308
+
309
+ #: inc/functions.php:165 inc/functions.php:182
310
+ msgid "Smiley"
311
+ msgstr ""
312
+
313
+ #: inc/functions.php:166 inc/functions.php:183
314
+ msgid "Generic"
315
+ msgstr ""
316
+
317
+ #: inc/functions.php:167 inc/functions.php:184
318
+ msgid "Old School"
319
+ msgstr ""
320
+
321
+ #: inc/functions.php:168 inc/functions.php:185
322
+ msgid "Cartoon"
323
+ msgstr ""
324
+
325
+ #: inc/functions.php:169 inc/functions.php:186
326
+ msgid "Mobile"
327
+ msgstr ""
328
+
329
+ #: inc/functions.php:170 inc/functions.php:187
330
+ msgid "Simple"
331
+ msgstr ""
332
+
333
+ #: inc/functions.php:171 inc/functions.php:188
334
+ msgid "Contemporary"
335
+ msgstr ""
336
+
337
+ #: inc/functions.php:363
338
+ msgid "Afrikaans"
339
+ msgstr ""
340
+
341
+ #: inc/functions.php:368
342
+ msgid "Albanian"
343
+ msgstr ""
344
+
345
+ #: inc/functions.php:373
346
+ msgid "Arabic"
347
+ msgstr ""
348
+
349
+ #: inc/functions.php:379
350
+ msgid "Armenian"
351
+ msgstr ""
352
+
353
+ #: inc/functions.php:384
354
+ msgid "Azerbaijani"
355
+ msgstr ""
356
+
357
+ #: inc/functions.php:389
358
+ msgid "Basque"
359
+ msgstr ""
360
+
361
+ #: inc/functions.php:394
362
+ msgid "Belarusian"
363
+ msgstr ""
364
+
365
+ #: inc/functions.php:399
366
+ msgid "Bulgarian"
367
+ msgstr ""
368
+
369
+ #: inc/functions.php:404
370
+ msgid "British English"
371
+ msgstr ""
372
+
373
+ #: inc/functions.php:409
374
+ msgid "Burmese"
375
+ msgstr ""
376
+
377
+ #: inc/functions.php:414
378
+ msgid "Catalan"
379
+ msgstr ""
380
+
381
+ #: inc/functions.php:419
382
+ msgid "Chinese - Simplified"
383
+ msgstr ""
384
+
385
+ #: inc/functions.php:424
386
+ msgid "Chinese - Traditional"
387
+ msgstr ""
388
+
389
+ #: inc/functions.php:429
390
+ msgid "Croatian"
391
+ msgstr ""
392
+
393
+ #: inc/functions.php:434
394
+ msgid "Czech"
395
+ msgstr ""
396
+
397
+ #: inc/functions.php:439
398
+ msgid "Danish"
399
+ msgstr ""
400
+
401
+ #: inc/functions.php:444
402
+ msgid "Dhivehi"
403
+ msgstr ""
404
+
405
+ #: inc/functions.php:450
406
+ msgid "Dutch"
407
+ msgstr ""
408
+
409
+ #: inc/functions.php:455
410
+ msgid "English"
411
+ msgstr ""
412
+
413
+ #: inc/functions.php:460
414
+ msgid "Esperanto"
415
+ msgstr ""
416
+
417
+ #: inc/functions.php:465
418
+ msgid "Estonian"
419
+ msgstr ""
420
+
421
+ #: inc/functions.php:470
422
+ msgid "Farsi"
423
+ msgstr ""
424
+
425
+ #: inc/functions.php:475
426
+ msgid "Finnish"
427
+ msgstr ""
428
+
429
+ #: inc/functions.php:480
430
+ msgid "French"
431
+ msgstr ""
432
+
433
+ #: inc/functions.php:485
434
+ msgid "French Canadian"
435
+ msgstr ""
436
+
437
+ #: inc/functions.php:490
438
+ msgid "Galician"
439
+ msgstr ""
440
+
441
+ #: inc/functions.php:495
442
+ msgid "German"
443
+ msgstr ""
444
+
445
+ #: inc/functions.php:500
446
+ msgid "Georgian"
447
+ msgstr ""
448
+
449
+ #: inc/functions.php:505
450
+ msgid "Greek"
451
+ msgstr ""
452
+
453
+ #: inc/functions.php:510
454
+ msgid "Gujarati"
455
+ msgstr ""
456
+
457
+ #: inc/functions.php:515
458
+ msgid "Haitian Creole"
459
+ msgstr ""
460
+
461
+ #: inc/functions.php:520
462
+ msgid "Hebrew"
463
+ msgstr ""
464
+
465
+ #: inc/functions.php:526
466
+ msgid "Hindi"
467
+ msgstr ""
468
+
469
+ #: inc/functions.php:531
470
+ msgid "Hungarian"
471
+ msgstr ""
472
+
473
+ #: inc/functions.php:536
474
+ msgid "Icelandic"
475
+ msgstr ""
476
+
477
+ #: inc/functions.php:541
478
+ msgid "Ido"
479
+ msgstr ""
480
+
481
+ #: inc/functions.php:546
482
+ msgid "Indonesian"
483
+ msgstr ""
484
+
485
+ #: inc/functions.php:551
486
+ msgid "Irish Gaelic"
487
+ msgstr ""
488
+
489
+ #: inc/functions.php:556
490
+ msgid "Italian"
491
+ msgstr ""
492
+
493
+ #: inc/functions.php:561
494
+ msgid "Japanese"
495
+ msgstr ""
496
+
497
+ #: inc/functions.php:566
498
+ msgid "Javanese"
499
+ msgstr ""
500
+
501
+ #: inc/functions.php:571
502
+ msgid "Khmer"
503
+ msgstr ""
504
+
505
+ #: inc/functions.php:576
506
+ msgid "Korean"
507
+ msgstr ""
508
+
509
+ #: inc/functions.php:581
510
+ msgid "Kurdish"
511
+ msgstr ""
512
+
513
+ #: inc/functions.php:587
514
+ msgid "Latin"
515
+ msgstr ""
516
+
517
+ #: inc/functions.php:592
518
+ msgid "Latvian"
519
+ msgstr ""
520
+
521
+ #: inc/functions.php:597
522
+ msgid "Lithuanian"
523
+ msgstr ""
524
+
525
+ #: inc/functions.php:602
526
+ msgid "Low German"
527
+ msgstr ""
528
+
529
+ #: inc/functions.php:607
530
+ msgid "Macedonian"
531
+ msgstr ""
532
+
533
+ #: inc/functions.php:612
534
+ msgid "Maltese"
535
+ msgstr ""
536
+
537
+ #: inc/functions.php:617
538
+ msgid "Mandinka"
539
+ msgstr ""
540
+
541
+ #: inc/functions.php:622
542
+ msgid "Maori"
543
+ msgstr ""
544
+
545
+ #: inc/functions.php:627
546
+ msgid "Marathi"
547
+ msgstr ""
548
+
549
+ #: inc/functions.php:632
550
+ msgid "Mongolian"
551
+ msgstr ""
552
+
553
+ #: inc/functions.php:637
554
+ msgid "Norwegian"
555
+ msgstr ""
556
+
557
+ #: inc/functions.php:642
558
+ msgid "Occitan"
559
+ msgstr ""
560
+
561
+ #: inc/functions.php:647
562
+ msgid "Pashto"
563
+ msgstr ""
564
+
565
+ #: inc/functions.php:653
566
+ msgid "Plautdietsch"
567
+ msgstr ""
568
+
569
+ #: inc/functions.php:658
570
+ msgid "Polish"
571
+ msgstr ""
572
+
573
+ #: inc/functions.php:663
574
+ msgid "Portuguese"
575
+ msgstr ""
576
+
577
+ #: inc/functions.php:668
578
+ msgid "Punjabi"
579
+ msgstr ""
580
+
581
+ #: inc/functions.php:674
582
+ msgid "Romanian"
583
+ msgstr ""
584
+
585
+ #: inc/functions.php:679
586
+ msgid "Russian"
587
+ msgstr ""
588
+
589
+ #: inc/functions.php:684
590
+ msgid "Serbian"
591
+ msgstr ""
592
+
593
+ #: inc/functions.php:689
594
+ msgid "Slovak"
595
+ msgstr ""
596
+
597
+ #: inc/functions.php:694
598
+ msgid "Slovenian"
599
+ msgstr ""
600
+
601
+ #: inc/functions.php:699
602
+ msgid "Spanish"
603
+ msgstr ""
604
+
605
+ #: inc/functions.php:704
606
+ msgid "Swahili"
607
+ msgstr ""
608
+
609
+ #: inc/functions.php:709
610
+ msgid "Swedish"
611
+ msgstr ""
612
+
613
+ #: inc/functions.php:714
614
+ msgid "Swiss"
615
+ msgstr ""
616
+
617
+ #: inc/functions.php:719
618
+ msgid "Tagalog"
619
+ msgstr ""
620
+
621
+ #: inc/functions.php:724
622
+ msgid "Tatarish"
623
+ msgstr ""
624
+
625
+ #: inc/functions.php:729
626
+ msgid "Thai"
627
+ msgstr ""
628
+
629
+ #: inc/functions.php:734
630
+ msgid "Turkish"
631
+ msgstr ""
632
+
633
+ #: inc/functions.php:739
634
+ msgid "Turkmen"
635
+ msgstr ""
636
+
637
+ #: inc/functions.php:744
638
+ msgid "Ukrainian"
639
+ msgstr ""
640
+
641
+ #: inc/functions.php:749
642
+ msgid "Uzbek"
643
+ msgstr ""
644
+
645
+ #: inc/functions.php:754
646
+ msgid "Vietnamese"
647
+ msgstr ""
648
+
649
+ #: inc/functions.php:759
650
+ msgid "Welsh"
651
+ msgstr ""
652
+
653
+ #: inc/functions.php:764
654
+ msgid "Wolof"
655
+ msgstr ""
656
+
657
+ #: inc/functions.php:769
658
+ msgid "Yiddish - transliterated"
659
+ msgstr ""
660
+
661
+ #: inc/functions.php:774
662
+ msgid "Yiddish - unicode"
663
+ msgstr ""
languages/wunderground-en_US.mo CHANGED
Binary file
languages/wunderground-en_US.po CHANGED
@@ -3,16 +3,16 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
7
- "PO-Revision-Date: 2014-12-04 20:12+0000\n"
8
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
- "Language-Team: English (United States) (http://www.transifex.com/projects/p/wunderground/language/en_US/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: en_US\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
- "X-Generator: Poedit 1.7beta3\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
@@ -114,172 +114,175 @@ msgstr "Add a Wunderground.com forecast"
114
  msgid "Wunderground"
115
  msgstr "Wunderground"
116
 
117
- #: inc/class-widget.php:152
 
 
 
 
 
118
  msgid "Title"
119
  msgstr "Title"
120
 
121
- #: inc/class-widget.php:153
122
  msgid "Leave empty to hide the widget title."
123
  msgstr "Leave empty to hide the widget title."
124
 
125
- #: inc/class-widget.php:159
126
  msgid "Location"
127
  msgstr "Location"
128
 
129
- #: inc/class-widget.php:160
130
  msgid "Locations will autoload, but you may also define custom locations."
131
  msgstr "Locations will autoload, but you may also define custom locations."
132
 
133
- #: inc/class-widget.php:161
134
  msgid "Enter the name of a location."
135
  msgstr "Enter the name of a location."
136
 
137
- #: inc/class-widget.php:168
138
  msgid "Location Title"
139
  msgstr "Location Title"
140
 
141
- #: inc/class-widget.php:169
142
  msgid "Change how the location is displayed in the widget search field."
143
  msgstr "Change how the location is displayed in the widget search field."
144
 
145
- #: inc/class-widget.php:170
146
  msgid "Leave empty to use the location name."
147
  msgstr "Leave empty to use the location name."
148
 
149
- #: inc/class-widget.php:171
150
  msgid ""
151
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
152
  "set the Location Title as \"Denver\", which is simpler."
153
  msgstr "Example: if the Location is set to \"Denver, Colorado\", you may prefer to set the Location Title as \"Denver\", which is simpler."
154
 
155
- #: inc/class-widget.php:180
156
  msgid "# of Days in Forecast"
157
  msgstr "# of Days in Forecast"
158
 
159
- #: inc/class-widget.php:186
160
  msgid "Include Current Conditions"
161
  msgstr "Include Current Conditions"
162
 
163
- #: inc/class-widget.php:187
164
  msgid "Add the current conditions to the forecast."
165
  msgstr "Add the current conditions to the forecast."
166
 
167
- #: inc/class-widget.php:193
168
  msgid "Include Night Forecasts"
169
  msgstr "Include Night Forecasts"
170
 
171
- #: inc/class-widget.php:194
172
  msgid "This will result in double the number of forecasts shown."
173
  msgstr "This will result in double the number of forecasts shown."
174
 
175
- #: inc/class-widget.php:200
176
  msgid "Icon Set"
177
  msgstr "Icon Set"
178
 
179
- #: inc/class-widget.php:201
180
  msgid ""
181
  "Choose the look and feel of the images that will represent the weather."
182
  msgstr "Choose the look and feel of the images that will represent the weather."
183
 
184
- #: inc/class-widget.php:229
185
  msgid "Widget Template"
186
  msgstr "Widget Template"
187
 
188
- #: inc/class-widget.php:230
189
  msgid "Choose how you would like to display the forecast."
190
  msgstr "Choose how you would like to display the forecast."
191
 
192
- #: inc/class-widget.php:235
193
  msgid "Show in Forecast"
194
  msgstr "Show in Forecast"
195
 
196
- #: inc/class-widget.php:240
197
  msgid "Search Form"
198
  msgstr "Search Form"
199
 
200
- #: inc/class-widget.php:241
201
  msgid "Allow searching weather forecasts."
202
  msgstr "Allow searching weather forecasts."
203
 
204
- #: inc/class-widget.php:244
205
  msgid "Weekday Labels"
206
  msgstr "Weekday Labels"
207
 
208
- #: inc/class-widget.php:245
209
  msgid "Show the names of the days of the week."
210
  msgstr "Show the names of the days of the week."
211
 
212
- #: inc/class-widget.php:248
213
  msgid "Date"
214
  msgstr "Date"
215
 
216
- #: inc/class-widget.php:249
217
  msgid "Display the date numerically (\"09/14\")."
218
  msgstr "Display the date numerically (\"09/14\")."
219
 
220
- #: inc/class-widget.php:252
221
  msgid "Weather Icon"
222
  msgstr "Weather Icon"
223
 
224
- #: inc/class-widget.php:253
225
  msgid "Icon representing the forecast conditions."
226
  msgstr "Icon representing the forecast conditions."
227
 
228
- #: inc/class-widget.php:256
229
  msgid "Chance of Rain"
230
  msgstr "Chance of Rain"
231
 
232
- #: inc/class-widget.php:257
233
  msgid "Display the percent chance of rain."
234
  msgstr "Display the percent chance of rain."
235
 
236
- #: inc/class-widget.php:260
237
  msgid "High & Low Temp"
238
  msgstr "High & Low Temp"
239
 
240
- #: inc/class-widget.php:261
241
  msgid "Show the high & low temperatures for forecast."
242
  msgstr "Show the high & low temperatures for forecast."
243
 
244
- #: inc/class-widget.php:264
245
  msgid "Condition Title"
246
  msgstr "Condition Title"
247
 
248
- #: inc/class-widget.php:265
249
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
250
  msgstr "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
251
 
252
- #: inc/class-widget.php:268
253
  msgid "Forecast Text"
254
  msgstr "Forecast Text"
255
 
256
- #: inc/class-widget.php:269
257
  msgid "Display a description of the forecast, normally in sentence format."
258
  msgstr "Display a description of the forecast, normally in sentence format."
259
 
260
- #: inc/class-widget.php:272
261
  msgid "Weather Alerts &amp; Warnings"
262
  msgstr "Weather Alerts &amp; Warnings"
263
 
264
- #: inc/class-widget.php:273
265
- msgid ""
266
- "This functionality is currently not working; we are working with "
267
- "Wunderground.com to restore it."
268
- msgstr "This functionality is currently not working; we are working with Wunderground.com to restore it."
269
 
270
- #: inc/class-widget.php:289
271
  msgid "Forecast Language"
272
  msgstr "Forecast Language"
273
 
274
- #: inc/class-widget.php:300
275
  msgid "Measurements"
276
  msgstr "Measurements"
277
 
278
- #: inc/class-widget.php:303
279
  msgid "Fahrenheit &amp; Inches"
280
  msgstr "Fahrenheit &amp; Inches"
281
 
282
- #: inc/class-widget.php:306
283
  msgid "Celsius &amp; Meters"
284
  msgstr "Celsius &amp; Meters"
285
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: English (United States) (http://www.transifex.com/katzwebservices/wunderground/language/en_US/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: en_US\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
114
  msgid "Wunderground"
115
  msgstr "Wunderground"
116
 
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr "There was an error fetching the forecast: %s"
121
+
122
+ #: inc/class-widget.php:169
123
  msgid "Title"
124
  msgstr "Title"
125
 
126
+ #: inc/class-widget.php:170
127
  msgid "Leave empty to hide the widget title."
128
  msgstr "Leave empty to hide the widget title."
129
 
130
+ #: inc/class-widget.php:176
131
  msgid "Location"
132
  msgstr "Location"
133
 
134
+ #: inc/class-widget.php:177
135
  msgid "Locations will autoload, but you may also define custom locations."
136
  msgstr "Locations will autoload, but you may also define custom locations."
137
 
138
+ #: inc/class-widget.php:178
139
  msgid "Enter the name of a location."
140
  msgstr "Enter the name of a location."
141
 
142
+ #: inc/class-widget.php:185
143
  msgid "Location Title"
144
  msgstr "Location Title"
145
 
146
+ #: inc/class-widget.php:186
147
  msgid "Change how the location is displayed in the widget search field."
148
  msgstr "Change how the location is displayed in the widget search field."
149
 
150
+ #: inc/class-widget.php:187
151
  msgid "Leave empty to use the location name."
152
  msgstr "Leave empty to use the location name."
153
 
154
+ #: inc/class-widget.php:188
155
  msgid ""
156
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
  "set the Location Title as \"Denver\", which is simpler."
158
  msgstr "Example: if the Location is set to \"Denver, Colorado\", you may prefer to set the Location Title as \"Denver\", which is simpler."
159
 
160
+ #: inc/class-widget.php:197
161
  msgid "# of Days in Forecast"
162
  msgstr "# of Days in Forecast"
163
 
164
+ #: inc/class-widget.php:203
165
  msgid "Include Current Conditions"
166
  msgstr "Include Current Conditions"
167
 
168
+ #: inc/class-widget.php:204
169
  msgid "Add the current conditions to the forecast."
170
  msgstr "Add the current conditions to the forecast."
171
 
172
+ #: inc/class-widget.php:210
173
  msgid "Include Night Forecasts"
174
  msgstr "Include Night Forecasts"
175
 
176
+ #: inc/class-widget.php:211
177
  msgid "This will result in double the number of forecasts shown."
178
  msgstr "This will result in double the number of forecasts shown."
179
 
180
+ #: inc/class-widget.php:217
181
  msgid "Icon Set"
182
  msgstr "Icon Set"
183
 
184
+ #: inc/class-widget.php:218
185
  msgid ""
186
  "Choose the look and feel of the images that will represent the weather."
187
  msgstr "Choose the look and feel of the images that will represent the weather."
188
 
189
+ #: inc/class-widget.php:246
190
  msgid "Widget Template"
191
  msgstr "Widget Template"
192
 
193
+ #: inc/class-widget.php:247
194
  msgid "Choose how you would like to display the forecast."
195
  msgstr "Choose how you would like to display the forecast."
196
 
197
+ #: inc/class-widget.php:252
198
  msgid "Show in Forecast"
199
  msgstr "Show in Forecast"
200
 
201
+ #: inc/class-widget.php:257
202
  msgid "Search Form"
203
  msgstr "Search Form"
204
 
205
+ #: inc/class-widget.php:258
206
  msgid "Allow searching weather forecasts."
207
  msgstr "Allow searching weather forecasts."
208
 
209
+ #: inc/class-widget.php:261
210
  msgid "Weekday Labels"
211
  msgstr "Weekday Labels"
212
 
213
+ #: inc/class-widget.php:262
214
  msgid "Show the names of the days of the week."
215
  msgstr "Show the names of the days of the week."
216
 
217
+ #: inc/class-widget.php:265
218
  msgid "Date"
219
  msgstr "Date"
220
 
221
+ #: inc/class-widget.php:266
222
  msgid "Display the date numerically (\"09/14\")."
223
  msgstr "Display the date numerically (\"09/14\")."
224
 
225
+ #: inc/class-widget.php:269
226
  msgid "Weather Icon"
227
  msgstr "Weather Icon"
228
 
229
+ #: inc/class-widget.php:270
230
  msgid "Icon representing the forecast conditions."
231
  msgstr "Icon representing the forecast conditions."
232
 
233
+ #: inc/class-widget.php:273
234
  msgid "Chance of Rain"
235
  msgstr "Chance of Rain"
236
 
237
+ #: inc/class-widget.php:274
238
  msgid "Display the percent chance of rain."
239
  msgstr "Display the percent chance of rain."
240
 
241
+ #: inc/class-widget.php:277
242
  msgid "High & Low Temp"
243
  msgstr "High & Low Temp"
244
 
245
+ #: inc/class-widget.php:278
246
  msgid "Show the high & low temperatures for forecast."
247
  msgstr "Show the high & low temperatures for forecast."
248
 
249
+ #: inc/class-widget.php:281
250
  msgid "Condition Title"
251
  msgstr "Condition Title"
252
 
253
+ #: inc/class-widget.php:282
254
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
  msgstr "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
256
 
257
+ #: inc/class-widget.php:285
258
  msgid "Forecast Text"
259
  msgstr "Forecast Text"
260
 
261
+ #: inc/class-widget.php:286
262
  msgid "Display a description of the forecast, normally in sentence format."
263
  msgstr "Display a description of the forecast, normally in sentence format."
264
 
265
+ #: inc/class-widget.php:289
266
  msgid "Weather Alerts &amp; Warnings"
267
  msgstr "Weather Alerts &amp; Warnings"
268
 
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
271
+ msgstr "Display Severe Weather alerts and warnings."
 
 
272
 
273
+ #: inc/class-widget.php:306
274
  msgid "Forecast Language"
275
  msgstr "Forecast Language"
276
 
277
+ #: inc/class-widget.php:317
278
  msgid "Measurements"
279
  msgstr "Measurements"
280
 
281
+ #: inc/class-widget.php:320
282
  msgid "Fahrenheit &amp; Inches"
283
  msgstr "Fahrenheit &amp; Inches"
284
 
285
+ #: inc/class-widget.php:323
286
  msgid "Celsius &amp; Meters"
287
  msgstr "Celsius &amp; Meters"
288
 
languages/wunderground-es.mo ADDED
Binary file
languages/wunderground-es.po ADDED
@@ -0,0 +1,664 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # Translators:
3
+ # Gastón GonzalezGradaschi <gastongg@gmail.com>, 2015
4
+ msgid ""
5
+ msgstr ""
6
+ "Project-Id-Version: Wunderground\n"
7
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
8
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
9
+ "Last-Translator: Zachary Katz <zack@katz.co>\n"
10
+ "Language-Team: Spanish (http://www.transifex.com/katzwebservices/wunderground/language/es/)\n"
11
+ "MIME-Version: 1.0\n"
12
+ "Content-Type: text/plain; charset=UTF-8\n"
13
+ "Content-Transfer-Encoding: 8bit\n"
14
+ "Language: es\n"
15
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "X-Generator: Poedit 1.7.1\n"
17
+ "X-Poedit-Basepath: ..\n"
18
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Poedit-SourceCharset: UTF-8\n"
21
+
22
+ #: inc/class-template.php:67
23
+ #, php-format
24
+ msgid "Statement as of %s"
25
+ msgstr ""
26
+
27
+ #: inc/class-template.php:68
28
+ msgid "The location could not be found."
29
+ msgstr ""
30
+
31
+ #: inc/class-template.php:69
32
+ #, php-format
33
+ msgid "%s%%"
34
+ msgstr ""
35
+
36
+ #: inc/class-template.php:70
37
+ #, php-format
38
+ msgid "%s%% Chance of Precipitation"
39
+ msgstr ""
40
+
41
+ #: inc/class-template.php:71
42
+ msgid "Currently"
43
+ msgstr ""
44
+
45
+ #: inc/class-template.php:72
46
+ #, php-format
47
+ msgid "High %d&deg;"
48
+ msgstr "Max %d&deg;"
49
+
50
+ #: inc/class-template.php:73
51
+ #, php-format
52
+ msgid "Low %d&deg;"
53
+ msgstr "Min %d&deg;"
54
+
55
+ #: inc/class-template.php:74
56
+ #, php-format
57
+ msgid "%d&deg;"
58
+ msgstr ""
59
+
60
+ #: inc/class-template.php:75
61
+ #, php-format
62
+ msgid "View the %s forecast on Wunderground.com"
63
+ msgstr ""
64
+
65
+ #: inc/class-template.php:76
66
+ msgctxt "Weather alert issued date/time"
67
+ msgid "Issued:"
68
+ msgstr ""
69
+
70
+ #: inc/class-template.php:77
71
+ msgctxt "Weather alert expires date/time"
72
+ msgid "Expires:"
73
+ msgstr ""
74
+
75
+ #: inc/class-template.php:149
76
+ msgid "Current Conditions"
77
+ msgstr ""
78
+
79
+ #: inc/class-template.php:150
80
+ msgid "Simple display of the current conditions."
81
+ msgstr ""
82
+
83
+ #: inc/class-template.php:155
84
+ msgid "Grid Forecast"
85
+ msgstr ""
86
+
87
+ #: inc/class-template.php:156
88
+ msgid "Scales to any screen size."
89
+ msgstr ""
90
+
91
+ #: inc/class-template.php:161
92
+ msgid "Details Table"
93
+ msgstr ""
94
+
95
+ #: inc/class-template.php:162
96
+ msgid ""
97
+ "Display the forecast in a table with rows. Great for in-depth forecast "
98
+ "display."
99
+ msgstr ""
100
+
101
+ #: inc/class-template.php:167
102
+ msgid "Horizontal Table"
103
+ msgstr ""
104
+
105
+ #: inc/class-template.php:168
106
+ msgid ""
107
+ "Display the forecast in a table with columns. Great for forecast summaries."
108
+ msgstr ""
109
+
110
+ #: inc/class-widget.php:43
111
+ msgid "Add a Wunderground.com forecast"
112
+ msgstr ""
113
+
114
+ #: inc/class-widget.php:48 inc/functions.php:176
115
+ msgid "Wunderground"
116
+ msgstr ""
117
+
118
+ #: inc/class-widget.php:132
119
+ #, php-format
120
+ msgid "There was an error fetching the forecast: %s"
121
+ msgstr ""
122
+
123
+ #: inc/class-widget.php:169
124
+ msgid "Title"
125
+ msgstr ""
126
+
127
+ #: inc/class-widget.php:170
128
+ msgid "Leave empty to hide the widget title."
129
+ msgstr ""
130
+
131
+ #: inc/class-widget.php:176
132
+ msgid "Location"
133
+ msgstr ""
134
+
135
+ #: inc/class-widget.php:177
136
+ msgid "Locations will autoload, but you may also define custom locations."
137
+ msgstr ""
138
+
139
+ #: inc/class-widget.php:178
140
+ msgid "Enter the name of a location."
141
+ msgstr ""
142
+
143
+ #: inc/class-widget.php:185
144
+ msgid "Location Title"
145
+ msgstr ""
146
+
147
+ #: inc/class-widget.php:186
148
+ msgid "Change how the location is displayed in the widget search field."
149
+ msgstr ""
150
+
151
+ #: inc/class-widget.php:187
152
+ msgid "Leave empty to use the location name."
153
+ msgstr ""
154
+
155
+ #: inc/class-widget.php:188
156
+ msgid ""
157
+ "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
158
+ "set the Location Title as \"Denver\", which is simpler."
159
+ msgstr ""
160
+
161
+ #: inc/class-widget.php:197
162
+ msgid "# of Days in Forecast"
163
+ msgstr ""
164
+
165
+ #: inc/class-widget.php:203
166
+ msgid "Include Current Conditions"
167
+ msgstr ""
168
+
169
+ #: inc/class-widget.php:204
170
+ msgid "Add the current conditions to the forecast."
171
+ msgstr ""
172
+
173
+ #: inc/class-widget.php:210
174
+ msgid "Include Night Forecasts"
175
+ msgstr ""
176
+
177
+ #: inc/class-widget.php:211
178
+ msgid "This will result in double the number of forecasts shown."
179
+ msgstr ""
180
+
181
+ #: inc/class-widget.php:217
182
+ msgid "Icon Set"
183
+ msgstr ""
184
+
185
+ #: inc/class-widget.php:218
186
+ msgid ""
187
+ "Choose the look and feel of the images that will represent the weather."
188
+ msgstr ""
189
+
190
+ #: inc/class-widget.php:246
191
+ msgid "Widget Template"
192
+ msgstr ""
193
+
194
+ #: inc/class-widget.php:247
195
+ msgid "Choose how you would like to display the forecast."
196
+ msgstr ""
197
+
198
+ #: inc/class-widget.php:252
199
+ msgid "Show in Forecast"
200
+ msgstr ""
201
+
202
+ #: inc/class-widget.php:257
203
+ msgid "Search Form"
204
+ msgstr ""
205
+
206
+ #: inc/class-widget.php:258
207
+ msgid "Allow searching weather forecasts."
208
+ msgstr ""
209
+
210
+ #: inc/class-widget.php:261
211
+ msgid "Weekday Labels"
212
+ msgstr ""
213
+
214
+ #: inc/class-widget.php:262
215
+ msgid "Show the names of the days of the week."
216
+ msgstr ""
217
+
218
+ #: inc/class-widget.php:265
219
+ msgid "Date"
220
+ msgstr ""
221
+
222
+ #: inc/class-widget.php:266
223
+ msgid "Display the date numerically (\"09/14\")."
224
+ msgstr ""
225
+
226
+ #: inc/class-widget.php:269
227
+ msgid "Weather Icon"
228
+ msgstr ""
229
+
230
+ #: inc/class-widget.php:270
231
+ msgid "Icon representing the forecast conditions."
232
+ msgstr ""
233
+
234
+ #: inc/class-widget.php:273
235
+ msgid "Chance of Rain"
236
+ msgstr ""
237
+
238
+ #: inc/class-widget.php:274
239
+ msgid "Display the percent chance of rain."
240
+ msgstr ""
241
+
242
+ #: inc/class-widget.php:277
243
+ msgid "High & Low Temp"
244
+ msgstr ""
245
+
246
+ #: inc/class-widget.php:278
247
+ msgid "Show the high & low temperatures for forecast."
248
+ msgstr ""
249
+
250
+ #: inc/class-widget.php:281
251
+ msgid "Condition Title"
252
+ msgstr ""
253
+
254
+ #: inc/class-widget.php:282
255
+ msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
256
+ msgstr ""
257
+
258
+ #: inc/class-widget.php:285
259
+ msgid "Forecast Text"
260
+ msgstr ""
261
+
262
+ #: inc/class-widget.php:286
263
+ msgid "Display a description of the forecast, normally in sentence format."
264
+ msgstr ""
265
+
266
+ #: inc/class-widget.php:289
267
+ msgid "Weather Alerts &amp; Warnings"
268
+ msgstr ""
269
+
270
+ #: inc/class-widget.php:290
271
+ msgid "Display Severe Weather alerts and warnings."
272
+ msgstr ""
273
+
274
+ #: inc/class-widget.php:306
275
+ msgid "Forecast Language"
276
+ msgstr ""
277
+
278
+ #: inc/class-widget.php:317
279
+ msgid "Measurements"
280
+ msgstr ""
281
+
282
+ #: inc/class-widget.php:320
283
+ msgid "Fahrenheit &amp; Inches"
284
+ msgstr ""
285
+
286
+ #: inc/class-widget.php:323
287
+ msgid "Celsius &amp; Meters"
288
+ msgstr ""
289
+
290
+ #: inc/functions.php:44
291
+ msgid "Weather Forecast"
292
+ msgstr ""
293
+
294
+ #: inc/functions.php:161 inc/functions.php:178
295
+ msgid "Incredible"
296
+ msgstr ""
297
+
298
+ #: inc/functions.php:162 inc/functions.php:177
299
+ msgid "Elemental"
300
+ msgstr ""
301
+
302
+ #: inc/functions.php:163 inc/functions.php:179
303
+ msgid "Helen"
304
+ msgstr ""
305
+
306
+ #: inc/functions.php:164 inc/functions.php:181
307
+ msgid "Default"
308
+ msgstr ""
309
+
310
+ #: inc/functions.php:165 inc/functions.php:182
311
+ msgid "Smiley"
312
+ msgstr ""
313
+
314
+ #: inc/functions.php:166 inc/functions.php:183
315
+ msgid "Generic"
316
+ msgstr ""
317
+
318
+ #: inc/functions.php:167 inc/functions.php:184
319
+ msgid "Old School"
320
+ msgstr ""
321
+
322
+ #: inc/functions.php:168 inc/functions.php:185
323
+ msgid "Cartoon"
324
+ msgstr ""
325
+
326
+ #: inc/functions.php:169 inc/functions.php:186
327
+ msgid "Mobile"
328
+ msgstr ""
329
+
330
+ #: inc/functions.php:170 inc/functions.php:187
331
+ msgid "Simple"
332
+ msgstr ""
333
+
334
+ #: inc/functions.php:171 inc/functions.php:188
335
+ msgid "Contemporary"
336
+ msgstr ""
337
+
338
+ #: inc/functions.php:363
339
+ msgid "Afrikaans"
340
+ msgstr ""
341
+
342
+ #: inc/functions.php:368
343
+ msgid "Albanian"
344
+ msgstr ""
345
+
346
+ #: inc/functions.php:373
347
+ msgid "Arabic"
348
+ msgstr ""
349
+
350
+ #: inc/functions.php:379
351
+ msgid "Armenian"
352
+ msgstr ""
353
+
354
+ #: inc/functions.php:384
355
+ msgid "Azerbaijani"
356
+ msgstr ""
357
+
358
+ #: inc/functions.php:389
359
+ msgid "Basque"
360
+ msgstr ""
361
+
362
+ #: inc/functions.php:394
363
+ msgid "Belarusian"
364
+ msgstr ""
365
+
366
+ #: inc/functions.php:399
367
+ msgid "Bulgarian"
368
+ msgstr ""
369
+
370
+ #: inc/functions.php:404
371
+ msgid "British English"
372
+ msgstr ""
373
+
374
+ #: inc/functions.php:409
375
+ msgid "Burmese"
376
+ msgstr ""
377
+
378
+ #: inc/functions.php:414
379
+ msgid "Catalan"
380
+ msgstr ""
381
+
382
+ #: inc/functions.php:419
383
+ msgid "Chinese - Simplified"
384
+ msgstr ""
385
+
386
+ #: inc/functions.php:424
387
+ msgid "Chinese - Traditional"
388
+ msgstr ""
389
+
390
+ #: inc/functions.php:429
391
+ msgid "Croatian"
392
+ msgstr ""
393
+
394
+ #: inc/functions.php:434
395
+ msgid "Czech"
396
+ msgstr ""
397
+
398
+ #: inc/functions.php:439
399
+ msgid "Danish"
400
+ msgstr ""
401
+
402
+ #: inc/functions.php:444
403
+ msgid "Dhivehi"
404
+ msgstr ""
405
+
406
+ #: inc/functions.php:450
407
+ msgid "Dutch"
408
+ msgstr ""
409
+
410
+ #: inc/functions.php:455
411
+ msgid "English"
412
+ msgstr ""
413
+
414
+ #: inc/functions.php:460
415
+ msgid "Esperanto"
416
+ msgstr ""
417
+
418
+ #: inc/functions.php:465
419
+ msgid "Estonian"
420
+ msgstr ""
421
+
422
+ #: inc/functions.php:470
423
+ msgid "Farsi"
424
+ msgstr ""
425
+
426
+ #: inc/functions.php:475
427
+ msgid "Finnish"
428
+ msgstr ""
429
+
430
+ #: inc/functions.php:480
431
+ msgid "French"
432
+ msgstr ""
433
+
434
+ #: inc/functions.php:485
435
+ msgid "French Canadian"
436
+ msgstr ""
437
+
438
+ #: inc/functions.php:490
439
+ msgid "Galician"
440
+ msgstr ""
441
+
442
+ #: inc/functions.php:495
443
+ msgid "German"
444
+ msgstr ""
445
+
446
+ #: inc/functions.php:500
447
+ msgid "Georgian"
448
+ msgstr ""
449
+
450
+ #: inc/functions.php:505
451
+ msgid "Greek"
452
+ msgstr ""
453
+
454
+ #: inc/functions.php:510
455
+ msgid "Gujarati"
456
+ msgstr ""
457
+
458
+ #: inc/functions.php:515
459
+ msgid "Haitian Creole"
460
+ msgstr ""
461
+
462
+ #: inc/functions.php:520
463
+ msgid "Hebrew"
464
+ msgstr ""
465
+
466
+ #: inc/functions.php:526
467
+ msgid "Hindi"
468
+ msgstr ""
469
+
470
+ #: inc/functions.php:531
471
+ msgid "Hungarian"
472
+ msgstr ""
473
+
474
+ #: inc/functions.php:536
475
+ msgid "Icelandic"
476
+ msgstr ""
477
+
478
+ #: inc/functions.php:541
479
+ msgid "Ido"
480
+ msgstr ""
481
+
482
+ #: inc/functions.php:546
483
+ msgid "Indonesian"
484
+ msgstr ""
485
+
486
+ #: inc/functions.php:551
487
+ msgid "Irish Gaelic"
488
+ msgstr ""
489
+
490
+ #: inc/functions.php:556
491
+ msgid "Italian"
492
+ msgstr ""
493
+
494
+ #: inc/functions.php:561
495
+ msgid "Japanese"
496
+ msgstr ""
497
+
498
+ #: inc/functions.php:566
499
+ msgid "Javanese"
500
+ msgstr ""
501
+
502
+ #: inc/functions.php:571
503
+ msgid "Khmer"
504
+ msgstr ""
505
+
506
+ #: inc/functions.php:576
507
+ msgid "Korean"
508
+ msgstr ""
509
+
510
+ #: inc/functions.php:581
511
+ msgid "Kurdish"
512
+ msgstr ""
513
+
514
+ #: inc/functions.php:587
515
+ msgid "Latin"
516
+ msgstr ""
517
+
518
+ #: inc/functions.php:592
519
+ msgid "Latvian"
520
+ msgstr ""
521
+
522
+ #: inc/functions.php:597
523
+ msgid "Lithuanian"
524
+ msgstr ""
525
+
526
+ #: inc/functions.php:602
527
+ msgid "Low German"
528
+ msgstr ""
529
+
530
+ #: inc/functions.php:607
531
+ msgid "Macedonian"
532
+ msgstr ""
533
+
534
+ #: inc/functions.php:612
535
+ msgid "Maltese"
536
+ msgstr ""
537
+
538
+ #: inc/functions.php:617
539
+ msgid "Mandinka"
540
+ msgstr ""
541
+
542
+ #: inc/functions.php:622
543
+ msgid "Maori"
544
+ msgstr ""
545
+
546
+ #: inc/functions.php:627
547
+ msgid "Marathi"
548
+ msgstr ""
549
+
550
+ #: inc/functions.php:632
551
+ msgid "Mongolian"
552
+ msgstr ""
553
+
554
+ #: inc/functions.php:637
555
+ msgid "Norwegian"
556
+ msgstr ""
557
+
558
+ #: inc/functions.php:642
559
+ msgid "Occitan"
560
+ msgstr ""
561
+
562
+ #: inc/functions.php:647
563
+ msgid "Pashto"
564
+ msgstr ""
565
+
566
+ #: inc/functions.php:653
567
+ msgid "Plautdietsch"
568
+ msgstr ""
569
+
570
+ #: inc/functions.php:658
571
+ msgid "Polish"
572
+ msgstr ""
573
+
574
+ #: inc/functions.php:663
575
+ msgid "Portuguese"
576
+ msgstr ""
577
+
578
+ #: inc/functions.php:668
579
+ msgid "Punjabi"
580
+ msgstr ""
581
+
582
+ #: inc/functions.php:674
583
+ msgid "Romanian"
584
+ msgstr ""
585
+
586
+ #: inc/functions.php:679
587
+ msgid "Russian"
588
+ msgstr ""
589
+
590
+ #: inc/functions.php:684
591
+ msgid "Serbian"
592
+ msgstr ""
593
+
594
+ #: inc/functions.php:689
595
+ msgid "Slovak"
596
+ msgstr ""
597
+
598
+ #: inc/functions.php:694
599
+ msgid "Slovenian"
600
+ msgstr ""
601
+
602
+ #: inc/functions.php:699
603
+ msgid "Spanish"
604
+ msgstr ""
605
+
606
+ #: inc/functions.php:704
607
+ msgid "Swahili"
608
+ msgstr ""
609
+
610
+ #: inc/functions.php:709
611
+ msgid "Swedish"
612
+ msgstr ""
613
+
614
+ #: inc/functions.php:714
615
+ msgid "Swiss"
616
+ msgstr ""
617
+
618
+ #: inc/functions.php:719
619
+ msgid "Tagalog"
620
+ msgstr ""
621
+
622
+ #: inc/functions.php:724
623
+ msgid "Tatarish"
624
+ msgstr ""
625
+
626
+ #: inc/functions.php:729
627
+ msgid "Thai"
628
+ msgstr ""
629
+
630
+ #: inc/functions.php:734
631
+ msgid "Turkish"
632
+ msgstr ""
633
+
634
+ #: inc/functions.php:739
635
+ msgid "Turkmen"
636
+ msgstr ""
637
+
638
+ #: inc/functions.php:744
639
+ msgid "Ukrainian"
640
+ msgstr ""
641
+
642
+ #: inc/functions.php:749
643
+ msgid "Uzbek"
644
+ msgstr ""
645
+
646
+ #: inc/functions.php:754
647
+ msgid "Vietnamese"
648
+ msgstr ""
649
+
650
+ #: inc/functions.php:759
651
+ msgid "Welsh"
652
+ msgstr ""
653
+
654
+ #: inc/functions.php:764
655
+ msgid "Wolof"
656
+ msgstr ""
657
+
658
+ #: inc/functions.php:769
659
+ msgid "Yiddish - transliterated"
660
+ msgstr ""
661
+
662
+ #: inc/functions.php:774
663
+ msgid "Yiddish - unicode"
664
+ msgstr ""
languages/wunderground-es_AR.mo ADDED
Binary file
languages/wunderground-es_AR.po ADDED
@@ -0,0 +1,663 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # Translators:
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
+ "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: Spanish (Argentina) (http://www.transifex.com/katzwebservices/wunderground/language/es_AR/)\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Language: es_AR\n"
14
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
+ "X-Poedit-Basepath: ..\n"
17
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
+ "X-Poedit-SearchPath-0: .\n"
19
+ "X-Poedit-SourceCharset: UTF-8\n"
20
+
21
+ #: inc/class-template.php:67
22
+ #, php-format
23
+ msgid "Statement as of %s"
24
+ msgstr ""
25
+
26
+ #: inc/class-template.php:68
27
+ msgid "The location could not be found."
28
+ msgstr ""
29
+
30
+ #: inc/class-template.php:69
31
+ #, php-format
32
+ msgid "%s%%"
33
+ msgstr ""
34
+
35
+ #: inc/class-template.php:70
36
+ #, php-format
37
+ msgid "%s%% Chance of Precipitation"
38
+ msgstr ""
39
+
40
+ #: inc/class-template.php:71
41
+ msgid "Currently"
42
+ msgstr ""
43
+
44
+ #: inc/class-template.php:72
45
+ #, php-format
46
+ msgid "High %d&deg;"
47
+ msgstr ""
48
+
49
+ #: inc/class-template.php:73
50
+ #, php-format
51
+ msgid "Low %d&deg;"
52
+ msgstr ""
53
+
54
+ #: inc/class-template.php:74
55
+ #, php-format
56
+ msgid "%d&deg;"
57
+ msgstr ""
58
+
59
+ #: inc/class-template.php:75
60
+ #, php-format
61
+ msgid "View the %s forecast on Wunderground.com"
62
+ msgstr ""
63
+
64
+ #: inc/class-template.php:76
65
+ msgctxt "Weather alert issued date/time"
66
+ msgid "Issued:"
67
+ msgstr ""
68
+
69
+ #: inc/class-template.php:77
70
+ msgctxt "Weather alert expires date/time"
71
+ msgid "Expires:"
72
+ msgstr ""
73
+
74
+ #: inc/class-template.php:149
75
+ msgid "Current Conditions"
76
+ msgstr ""
77
+
78
+ #: inc/class-template.php:150
79
+ msgid "Simple display of the current conditions."
80
+ msgstr ""
81
+
82
+ #: inc/class-template.php:155
83
+ msgid "Grid Forecast"
84
+ msgstr ""
85
+
86
+ #: inc/class-template.php:156
87
+ msgid "Scales to any screen size."
88
+ msgstr ""
89
+
90
+ #: inc/class-template.php:161
91
+ msgid "Details Table"
92
+ msgstr ""
93
+
94
+ #: inc/class-template.php:162
95
+ msgid ""
96
+ "Display the forecast in a table with rows. Great for in-depth forecast "
97
+ "display."
98
+ msgstr ""
99
+
100
+ #: inc/class-template.php:167
101
+ msgid "Horizontal Table"
102
+ msgstr ""
103
+
104
+ #: inc/class-template.php:168
105
+ msgid ""
106
+ "Display the forecast in a table with columns. Great for forecast summaries."
107
+ msgstr ""
108
+
109
+ #: inc/class-widget.php:43
110
+ msgid "Add a Wunderground.com forecast"
111
+ msgstr ""
112
+
113
+ #: inc/class-widget.php:48 inc/functions.php:176
114
+ msgid "Wunderground"
115
+ msgstr ""
116
+
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
+ msgid "Title"
124
+ msgstr ""
125
+
126
+ #: inc/class-widget.php:170
127
+ msgid "Leave empty to hide the widget title."
128
+ msgstr ""
129
+
130
+ #: inc/class-widget.php:176
131
+ msgid "Location"
132
+ msgstr ""
133
+
134
+ #: inc/class-widget.php:177
135
+ msgid "Locations will autoload, but you may also define custom locations."
136
+ msgstr ""
137
+
138
+ #: inc/class-widget.php:178
139
+ msgid "Enter the name of a location."
140
+ msgstr ""
141
+
142
+ #: inc/class-widget.php:185
143
+ msgid "Location Title"
144
+ msgstr ""
145
+
146
+ #: inc/class-widget.php:186
147
+ msgid "Change how the location is displayed in the widget search field."
148
+ msgstr ""
149
+
150
+ #: inc/class-widget.php:187
151
+ msgid "Leave empty to use the location name."
152
+ msgstr ""
153
+
154
+ #: inc/class-widget.php:188
155
+ msgid ""
156
+ "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
+ "set the Location Title as \"Denver\", which is simpler."
158
+ msgstr ""
159
+
160
+ #: inc/class-widget.php:197
161
+ msgid "# of Days in Forecast"
162
+ msgstr ""
163
+
164
+ #: inc/class-widget.php:203
165
+ msgid "Include Current Conditions"
166
+ msgstr ""
167
+
168
+ #: inc/class-widget.php:204
169
+ msgid "Add the current conditions to the forecast."
170
+ msgstr ""
171
+
172
+ #: inc/class-widget.php:210
173
+ msgid "Include Night Forecasts"
174
+ msgstr ""
175
+
176
+ #: inc/class-widget.php:211
177
+ msgid "This will result in double the number of forecasts shown."
178
+ msgstr ""
179
+
180
+ #: inc/class-widget.php:217
181
+ msgid "Icon Set"
182
+ msgstr ""
183
+
184
+ #: inc/class-widget.php:218
185
+ msgid ""
186
+ "Choose the look and feel of the images that will represent the weather."
187
+ msgstr ""
188
+
189
+ #: inc/class-widget.php:246
190
+ msgid "Widget Template"
191
+ msgstr ""
192
+
193
+ #: inc/class-widget.php:247
194
+ msgid "Choose how you would like to display the forecast."
195
+ msgstr ""
196
+
197
+ #: inc/class-widget.php:252
198
+ msgid "Show in Forecast"
199
+ msgstr ""
200
+
201
+ #: inc/class-widget.php:257
202
+ msgid "Search Form"
203
+ msgstr ""
204
+
205
+ #: inc/class-widget.php:258
206
+ msgid "Allow searching weather forecasts."
207
+ msgstr ""
208
+
209
+ #: inc/class-widget.php:261
210
+ msgid "Weekday Labels"
211
+ msgstr ""
212
+
213
+ #: inc/class-widget.php:262
214
+ msgid "Show the names of the days of the week."
215
+ msgstr ""
216
+
217
+ #: inc/class-widget.php:265
218
+ msgid "Date"
219
+ msgstr ""
220
+
221
+ #: inc/class-widget.php:266
222
+ msgid "Display the date numerically (\"09/14\")."
223
+ msgstr ""
224
+
225
+ #: inc/class-widget.php:269
226
+ msgid "Weather Icon"
227
+ msgstr ""
228
+
229
+ #: inc/class-widget.php:270
230
+ msgid "Icon representing the forecast conditions."
231
+ msgstr ""
232
+
233
+ #: inc/class-widget.php:273
234
+ msgid "Chance of Rain"
235
+ msgstr ""
236
+
237
+ #: inc/class-widget.php:274
238
+ msgid "Display the percent chance of rain."
239
+ msgstr ""
240
+
241
+ #: inc/class-widget.php:277
242
+ msgid "High & Low Temp"
243
+ msgstr ""
244
+
245
+ #: inc/class-widget.php:278
246
+ msgid "Show the high & low temperatures for forecast."
247
+ msgstr ""
248
+
249
+ #: inc/class-widget.php:281
250
+ msgid "Condition Title"
251
+ msgstr ""
252
+
253
+ #: inc/class-widget.php:282
254
+ msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
+ msgstr ""
256
+
257
+ #: inc/class-widget.php:285
258
+ msgid "Forecast Text"
259
+ msgstr ""
260
+
261
+ #: inc/class-widget.php:286
262
+ msgid "Display a description of the forecast, normally in sentence format."
263
+ msgstr ""
264
+
265
+ #: inc/class-widget.php:289
266
+ msgid "Weather Alerts &amp; Warnings"
267
+ msgstr ""
268
+
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
271
+ msgstr ""
272
+
273
+ #: inc/class-widget.php:306
274
+ msgid "Forecast Language"
275
+ msgstr ""
276
+
277
+ #: inc/class-widget.php:317
278
+ msgid "Measurements"
279
+ msgstr ""
280
+
281
+ #: inc/class-widget.php:320
282
+ msgid "Fahrenheit &amp; Inches"
283
+ msgstr ""
284
+
285
+ #: inc/class-widget.php:323
286
+ msgid "Celsius &amp; Meters"
287
+ msgstr ""
288
+
289
+ #: inc/functions.php:44
290
+ msgid "Weather Forecast"
291
+ msgstr ""
292
+
293
+ #: inc/functions.php:161 inc/functions.php:178
294
+ msgid "Incredible"
295
+ msgstr ""
296
+
297
+ #: inc/functions.php:162 inc/functions.php:177
298
+ msgid "Elemental"
299
+ msgstr ""
300
+
301
+ #: inc/functions.php:163 inc/functions.php:179
302
+ msgid "Helen"
303
+ msgstr ""
304
+
305
+ #: inc/functions.php:164 inc/functions.php:181
306
+ msgid "Default"
307
+ msgstr ""
308
+
309
+ #: inc/functions.php:165 inc/functions.php:182
310
+ msgid "Smiley"
311
+ msgstr ""
312
+
313
+ #: inc/functions.php:166 inc/functions.php:183
314
+ msgid "Generic"
315
+ msgstr ""
316
+
317
+ #: inc/functions.php:167 inc/functions.php:184
318
+ msgid "Old School"
319
+ msgstr ""
320
+
321
+ #: inc/functions.php:168 inc/functions.php:185
322
+ msgid "Cartoon"
323
+ msgstr ""
324
+
325
+ #: inc/functions.php:169 inc/functions.php:186
326
+ msgid "Mobile"
327
+ msgstr ""
328
+
329
+ #: inc/functions.php:170 inc/functions.php:187
330
+ msgid "Simple"
331
+ msgstr ""
332
+
333
+ #: inc/functions.php:171 inc/functions.php:188
334
+ msgid "Contemporary"
335
+ msgstr ""
336
+
337
+ #: inc/functions.php:363
338
+ msgid "Afrikaans"
339
+ msgstr ""
340
+
341
+ #: inc/functions.php:368
342
+ msgid "Albanian"
343
+ msgstr ""
344
+
345
+ #: inc/functions.php:373
346
+ msgid "Arabic"
347
+ msgstr ""
348
+
349
+ #: inc/functions.php:379
350
+ msgid "Armenian"
351
+ msgstr ""
352
+
353
+ #: inc/functions.php:384
354
+ msgid "Azerbaijani"
355
+ msgstr ""
356
+
357
+ #: inc/functions.php:389
358
+ msgid "Basque"
359
+ msgstr ""
360
+
361
+ #: inc/functions.php:394
362
+ msgid "Belarusian"
363
+ msgstr ""
364
+
365
+ #: inc/functions.php:399
366
+ msgid "Bulgarian"
367
+ msgstr ""
368
+
369
+ #: inc/functions.php:404
370
+ msgid "British English"
371
+ msgstr ""
372
+
373
+ #: inc/functions.php:409
374
+ msgid "Burmese"
375
+ msgstr ""
376
+
377
+ #: inc/functions.php:414
378
+ msgid "Catalan"
379
+ msgstr ""
380
+
381
+ #: inc/functions.php:419
382
+ msgid "Chinese - Simplified"
383
+ msgstr ""
384
+
385
+ #: inc/functions.php:424
386
+ msgid "Chinese - Traditional"
387
+ msgstr ""
388
+
389
+ #: inc/functions.php:429
390
+ msgid "Croatian"
391
+ msgstr ""
392
+
393
+ #: inc/functions.php:434
394
+ msgid "Czech"
395
+ msgstr ""
396
+
397
+ #: inc/functions.php:439
398
+ msgid "Danish"
399
+ msgstr ""
400
+
401
+ #: inc/functions.php:444
402
+ msgid "Dhivehi"
403
+ msgstr ""
404
+
405
+ #: inc/functions.php:450
406
+ msgid "Dutch"
407
+ msgstr ""
408
+
409
+ #: inc/functions.php:455
410
+ msgid "English"
411
+ msgstr ""
412
+
413
+ #: inc/functions.php:460
414
+ msgid "Esperanto"
415
+ msgstr ""
416
+
417
+ #: inc/functions.php:465
418
+ msgid "Estonian"
419
+ msgstr ""
420
+
421
+ #: inc/functions.php:470
422
+ msgid "Farsi"
423
+ msgstr ""
424
+
425
+ #: inc/functions.php:475
426
+ msgid "Finnish"
427
+ msgstr ""
428
+
429
+ #: inc/functions.php:480
430
+ msgid "French"
431
+ msgstr ""
432
+
433
+ #: inc/functions.php:485
434
+ msgid "French Canadian"
435
+ msgstr ""
436
+
437
+ #: inc/functions.php:490
438
+ msgid "Galician"
439
+ msgstr ""
440
+
441
+ #: inc/functions.php:495
442
+ msgid "German"
443
+ msgstr ""
444
+
445
+ #: inc/functions.php:500
446
+ msgid "Georgian"
447
+ msgstr ""
448
+
449
+ #: inc/functions.php:505
450
+ msgid "Greek"
451
+ msgstr ""
452
+
453
+ #: inc/functions.php:510
454
+ msgid "Gujarati"
455
+ msgstr ""
456
+
457
+ #: inc/functions.php:515
458
+ msgid "Haitian Creole"
459
+ msgstr ""
460
+
461
+ #: inc/functions.php:520
462
+ msgid "Hebrew"
463
+ msgstr ""
464
+
465
+ #: inc/functions.php:526
466
+ msgid "Hindi"
467
+ msgstr ""
468
+
469
+ #: inc/functions.php:531
470
+ msgid "Hungarian"
471
+ msgstr ""
472
+
473
+ #: inc/functions.php:536
474
+ msgid "Icelandic"
475
+ msgstr ""
476
+
477
+ #: inc/functions.php:541
478
+ msgid "Ido"
479
+ msgstr ""
480
+
481
+ #: inc/functions.php:546
482
+ msgid "Indonesian"
483
+ msgstr ""
484
+
485
+ #: inc/functions.php:551
486
+ msgid "Irish Gaelic"
487
+ msgstr ""
488
+
489
+ #: inc/functions.php:556
490
+ msgid "Italian"
491
+ msgstr ""
492
+
493
+ #: inc/functions.php:561
494
+ msgid "Japanese"
495
+ msgstr ""
496
+
497
+ #: inc/functions.php:566
498
+ msgid "Javanese"
499
+ msgstr ""
500
+
501
+ #: inc/functions.php:571
502
+ msgid "Khmer"
503
+ msgstr ""
504
+
505
+ #: inc/functions.php:576
506
+ msgid "Korean"
507
+ msgstr ""
508
+
509
+ #: inc/functions.php:581
510
+ msgid "Kurdish"
511
+ msgstr ""
512
+
513
+ #: inc/functions.php:587
514
+ msgid "Latin"
515
+ msgstr ""
516
+
517
+ #: inc/functions.php:592
518
+ msgid "Latvian"
519
+ msgstr ""
520
+
521
+ #: inc/functions.php:597
522
+ msgid "Lithuanian"
523
+ msgstr ""
524
+
525
+ #: inc/functions.php:602
526
+ msgid "Low German"
527
+ msgstr ""
528
+
529
+ #: inc/functions.php:607
530
+ msgid "Macedonian"
531
+ msgstr ""
532
+
533
+ #: inc/functions.php:612
534
+ msgid "Maltese"
535
+ msgstr ""
536
+
537
+ #: inc/functions.php:617
538
+ msgid "Mandinka"
539
+ msgstr ""
540
+
541
+ #: inc/functions.php:622
542
+ msgid "Maori"
543
+ msgstr ""
544
+
545
+ #: inc/functions.php:627
546
+ msgid "Marathi"
547
+ msgstr ""
548
+
549
+ #: inc/functions.php:632
550
+ msgid "Mongolian"
551
+ msgstr ""
552
+
553
+ #: inc/functions.php:637
554
+ msgid "Norwegian"
555
+ msgstr ""
556
+
557
+ #: inc/functions.php:642
558
+ msgid "Occitan"
559
+ msgstr ""
560
+
561
+ #: inc/functions.php:647
562
+ msgid "Pashto"
563
+ msgstr ""
564
+
565
+ #: inc/functions.php:653
566
+ msgid "Plautdietsch"
567
+ msgstr ""
568
+
569
+ #: inc/functions.php:658
570
+ msgid "Polish"
571
+ msgstr ""
572
+
573
+ #: inc/functions.php:663
574
+ msgid "Portuguese"
575
+ msgstr ""
576
+
577
+ #: inc/functions.php:668
578
+ msgid "Punjabi"
579
+ msgstr ""
580
+
581
+ #: inc/functions.php:674
582
+ msgid "Romanian"
583
+ msgstr ""
584
+
585
+ #: inc/functions.php:679
586
+ msgid "Russian"
587
+ msgstr ""
588
+
589
+ #: inc/functions.php:684
590
+ msgid "Serbian"
591
+ msgstr ""
592
+
593
+ #: inc/functions.php:689
594
+ msgid "Slovak"
595
+ msgstr ""
596
+
597
+ #: inc/functions.php:694
598
+ msgid "Slovenian"
599
+ msgstr ""
600
+
601
+ #: inc/functions.php:699
602
+ msgid "Spanish"
603
+ msgstr ""
604
+
605
+ #: inc/functions.php:704
606
+ msgid "Swahili"
607
+ msgstr ""
608
+
609
+ #: inc/functions.php:709
610
+ msgid "Swedish"
611
+ msgstr ""
612
+
613
+ #: inc/functions.php:714
614
+ msgid "Swiss"
615
+ msgstr ""
616
+
617
+ #: inc/functions.php:719
618
+ msgid "Tagalog"
619
+ msgstr ""
620
+
621
+ #: inc/functions.php:724
622
+ msgid "Tatarish"
623
+ msgstr ""
624
+
625
+ #: inc/functions.php:729
626
+ msgid "Thai"
627
+ msgstr ""
628
+
629
+ #: inc/functions.php:734
630
+ msgid "Turkish"
631
+ msgstr ""
632
+
633
+ #: inc/functions.php:739
634
+ msgid "Turkmen"
635
+ msgstr ""
636
+
637
+ #: inc/functions.php:744
638
+ msgid "Ukrainian"
639
+ msgstr ""
640
+
641
+ #: inc/functions.php:749
642
+ msgid "Uzbek"
643
+ msgstr ""
644
+
645
+ #: inc/functions.php:754
646
+ msgid "Vietnamese"
647
+ msgstr ""
648
+
649
+ #: inc/functions.php:759
650
+ msgid "Welsh"
651
+ msgstr ""
652
+
653
+ #: inc/functions.php:764
654
+ msgid "Wolof"
655
+ msgstr ""
656
+
657
+ #: inc/functions.php:769
658
+ msgid "Yiddish - transliterated"
659
+ msgstr ""
660
+
661
+ #: inc/functions.php:774
662
+ msgid "Yiddish - unicode"
663
+ msgstr ""
languages/wunderground-fa.mo CHANGED
Binary file
languages/wunderground-fa.po CHANGED
@@ -3,16 +3,16 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
7
- "PO-Revision-Date: 2014-06-06 15:48+0000\n"
8
- "Last-Translator: Katz Web Services, Inc. <support@katz.co>\n"
9
- "Language-Team: Persian (http://www.transifex.com/projects/p/wunderground/language/fa/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: fa\n"
14
  "Plural-Forms: nplurals=1; plural=0;\n"
15
- "X-Generator: Poedit 1.7beta3\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
@@ -114,172 +114,175 @@ msgstr ""
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
- #: inc/class-widget.php:152
 
 
 
 
 
118
  msgid "Title"
119
  msgstr ""
120
 
121
- #: inc/class-widget.php:153
122
  msgid "Leave empty to hide the widget title."
123
  msgstr ""
124
 
125
- #: inc/class-widget.php:159
126
  msgid "Location"
127
  msgstr ""
128
 
129
- #: inc/class-widget.php:160
130
  msgid "Locations will autoload, but you may also define custom locations."
131
  msgstr ""
132
 
133
- #: inc/class-widget.php:161
134
  msgid "Enter the name of a location."
135
  msgstr ""
136
 
137
- #: inc/class-widget.php:168
138
  msgid "Location Title"
139
  msgstr ""
140
 
141
- #: inc/class-widget.php:169
142
  msgid "Change how the location is displayed in the widget search field."
143
  msgstr ""
144
 
145
- #: inc/class-widget.php:170
146
  msgid "Leave empty to use the location name."
147
  msgstr ""
148
 
149
- #: inc/class-widget.php:171
150
  msgid ""
151
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
152
  "set the Location Title as \"Denver\", which is simpler."
153
  msgstr ""
154
 
155
- #: inc/class-widget.php:180
156
  msgid "# of Days in Forecast"
157
  msgstr ""
158
 
159
- #: inc/class-widget.php:186
160
  msgid "Include Current Conditions"
161
  msgstr ""
162
 
163
- #: inc/class-widget.php:187
164
  msgid "Add the current conditions to the forecast."
165
  msgstr ""
166
 
167
- #: inc/class-widget.php:193
168
  msgid "Include Night Forecasts"
169
  msgstr ""
170
 
171
- #: inc/class-widget.php:194
172
  msgid "This will result in double the number of forecasts shown."
173
  msgstr ""
174
 
175
- #: inc/class-widget.php:200
176
  msgid "Icon Set"
177
  msgstr ""
178
 
179
- #: inc/class-widget.php:201
180
  msgid ""
181
  "Choose the look and feel of the images that will represent the weather."
182
  msgstr ""
183
 
184
- #: inc/class-widget.php:229
185
  msgid "Widget Template"
186
  msgstr ""
187
 
188
- #: inc/class-widget.php:230
189
  msgid "Choose how you would like to display the forecast."
190
  msgstr ""
191
 
192
- #: inc/class-widget.php:235
193
  msgid "Show in Forecast"
194
  msgstr ""
195
 
196
- #: inc/class-widget.php:240
197
  msgid "Search Form"
198
  msgstr ""
199
 
200
- #: inc/class-widget.php:241
201
  msgid "Allow searching weather forecasts."
202
  msgstr ""
203
 
204
- #: inc/class-widget.php:244
205
  msgid "Weekday Labels"
206
  msgstr ""
207
 
208
- #: inc/class-widget.php:245
209
  msgid "Show the names of the days of the week."
210
  msgstr ""
211
 
212
- #: inc/class-widget.php:248
213
  msgid "Date"
214
  msgstr ""
215
 
216
- #: inc/class-widget.php:249
217
  msgid "Display the date numerically (\"09/14\")."
218
  msgstr ""
219
 
220
- #: inc/class-widget.php:252
221
  msgid "Weather Icon"
222
  msgstr ""
223
 
224
- #: inc/class-widget.php:253
225
  msgid "Icon representing the forecast conditions."
226
  msgstr ""
227
 
228
- #: inc/class-widget.php:256
229
  msgid "Chance of Rain"
230
  msgstr ""
231
 
232
- #: inc/class-widget.php:257
233
  msgid "Display the percent chance of rain."
234
  msgstr ""
235
 
236
- #: inc/class-widget.php:260
237
  msgid "High & Low Temp"
238
  msgstr ""
239
 
240
- #: inc/class-widget.php:261
241
  msgid "Show the high & low temperatures for forecast."
242
  msgstr ""
243
 
244
- #: inc/class-widget.php:264
245
  msgid "Condition Title"
246
  msgstr ""
247
 
248
- #: inc/class-widget.php:265
249
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
250
  msgstr ""
251
 
252
- #: inc/class-widget.php:268
253
  msgid "Forecast Text"
254
  msgstr ""
255
 
256
- #: inc/class-widget.php:269
257
  msgid "Display a description of the forecast, normally in sentence format."
258
  msgstr ""
259
 
260
- #: inc/class-widget.php:272
261
  msgid "Weather Alerts &amp; Warnings"
262
  msgstr ""
263
 
264
- #: inc/class-widget.php:273
265
- msgid ""
266
- "This functionality is currently not working; we are working with "
267
- "Wunderground.com to restore it."
268
  msgstr ""
269
 
270
- #: inc/class-widget.php:289
271
  msgid "Forecast Language"
272
  msgstr ""
273
 
274
- #: inc/class-widget.php:300
275
  msgid "Measurements"
276
  msgstr ""
277
 
278
- #: inc/class-widget.php:303
279
  msgid "Fahrenheit &amp; Inches"
280
  msgstr ""
281
 
282
- #: inc/class-widget.php:306
283
  msgid "Celsius &amp; Meters"
284
  msgstr ""
285
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
+ "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: Persian (http://www.transifex.com/katzwebservices/wunderground/language/fa/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: fa\n"
14
  "Plural-Forms: nplurals=1; plural=0;\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
  msgid "Title"
124
  msgstr ""
125
 
126
+ #: inc/class-widget.php:170
127
  msgid "Leave empty to hide the widget title."
128
  msgstr ""
129
 
130
+ #: inc/class-widget.php:176
131
  msgid "Location"
132
  msgstr ""
133
 
134
+ #: inc/class-widget.php:177
135
  msgid "Locations will autoload, but you may also define custom locations."
136
  msgstr ""
137
 
138
+ #: inc/class-widget.php:178
139
  msgid "Enter the name of a location."
140
  msgstr ""
141
 
142
+ #: inc/class-widget.php:185
143
  msgid "Location Title"
144
  msgstr ""
145
 
146
+ #: inc/class-widget.php:186
147
  msgid "Change how the location is displayed in the widget search field."
148
  msgstr ""
149
 
150
+ #: inc/class-widget.php:187
151
  msgid "Leave empty to use the location name."
152
  msgstr ""
153
 
154
+ #: inc/class-widget.php:188
155
  msgid ""
156
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
  "set the Location Title as \"Denver\", which is simpler."
158
  msgstr ""
159
 
160
+ #: inc/class-widget.php:197
161
  msgid "# of Days in Forecast"
162
  msgstr ""
163
 
164
+ #: inc/class-widget.php:203
165
  msgid "Include Current Conditions"
166
  msgstr ""
167
 
168
+ #: inc/class-widget.php:204
169
  msgid "Add the current conditions to the forecast."
170
  msgstr ""
171
 
172
+ #: inc/class-widget.php:210
173
  msgid "Include Night Forecasts"
174
  msgstr ""
175
 
176
+ #: inc/class-widget.php:211
177
  msgid "This will result in double the number of forecasts shown."
178
  msgstr ""
179
 
180
+ #: inc/class-widget.php:217
181
  msgid "Icon Set"
182
  msgstr ""
183
 
184
+ #: inc/class-widget.php:218
185
  msgid ""
186
  "Choose the look and feel of the images that will represent the weather."
187
  msgstr ""
188
 
189
+ #: inc/class-widget.php:246
190
  msgid "Widget Template"
191
  msgstr ""
192
 
193
+ #: inc/class-widget.php:247
194
  msgid "Choose how you would like to display the forecast."
195
  msgstr ""
196
 
197
+ #: inc/class-widget.php:252
198
  msgid "Show in Forecast"
199
  msgstr ""
200
 
201
+ #: inc/class-widget.php:257
202
  msgid "Search Form"
203
  msgstr ""
204
 
205
+ #: inc/class-widget.php:258
206
  msgid "Allow searching weather forecasts."
207
  msgstr ""
208
 
209
+ #: inc/class-widget.php:261
210
  msgid "Weekday Labels"
211
  msgstr ""
212
 
213
+ #: inc/class-widget.php:262
214
  msgid "Show the names of the days of the week."
215
  msgstr ""
216
 
217
+ #: inc/class-widget.php:265
218
  msgid "Date"
219
  msgstr ""
220
 
221
+ #: inc/class-widget.php:266
222
  msgid "Display the date numerically (\"09/14\")."
223
  msgstr ""
224
 
225
+ #: inc/class-widget.php:269
226
  msgid "Weather Icon"
227
  msgstr ""
228
 
229
+ #: inc/class-widget.php:270
230
  msgid "Icon representing the forecast conditions."
231
  msgstr ""
232
 
233
+ #: inc/class-widget.php:273
234
  msgid "Chance of Rain"
235
  msgstr ""
236
 
237
+ #: inc/class-widget.php:274
238
  msgid "Display the percent chance of rain."
239
  msgstr ""
240
 
241
+ #: inc/class-widget.php:277
242
  msgid "High & Low Temp"
243
  msgstr ""
244
 
245
+ #: inc/class-widget.php:278
246
  msgid "Show the high & low temperatures for forecast."
247
  msgstr ""
248
 
249
+ #: inc/class-widget.php:281
250
  msgid "Condition Title"
251
  msgstr ""
252
 
253
+ #: inc/class-widget.php:282
254
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
  msgstr ""
256
 
257
+ #: inc/class-widget.php:285
258
  msgid "Forecast Text"
259
  msgstr ""
260
 
261
+ #: inc/class-widget.php:286
262
  msgid "Display a description of the forecast, normally in sentence format."
263
  msgstr ""
264
 
265
+ #: inc/class-widget.php:289
266
  msgid "Weather Alerts &amp; Warnings"
267
  msgstr ""
268
 
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
 
 
271
  msgstr ""
272
 
273
+ #: inc/class-widget.php:306
274
  msgid "Forecast Language"
275
  msgstr ""
276
 
277
+ #: inc/class-widget.php:317
278
  msgid "Measurements"
279
  msgstr ""
280
 
281
+ #: inc/class-widget.php:320
282
  msgid "Fahrenheit &amp; Inches"
283
  msgstr ""
284
 
285
+ #: inc/class-widget.php:323
286
  msgid "Celsius &amp; Meters"
287
  msgstr ""
288
 
languages/wunderground-fr.mo CHANGED
Binary file
languages/wunderground-fr.po CHANGED
@@ -3,16 +3,16 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
7
- "PO-Revision-Date: 2014-06-06 15:48+0000\n"
8
- "Last-Translator: Katz Web Services, Inc. <support@katz.co>\n"
9
- "Language-Team: French (http://www.transifex.com/projects/p/wunderground/language/fr/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: fr\n"
14
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
15
- "X-Generator: Poedit 1.7beta3\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
@@ -114,172 +114,175 @@ msgstr ""
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
- #: inc/class-widget.php:152
 
 
 
 
 
118
  msgid "Title"
119
  msgstr ""
120
 
121
- #: inc/class-widget.php:153
122
  msgid "Leave empty to hide the widget title."
123
  msgstr ""
124
 
125
- #: inc/class-widget.php:159
126
  msgid "Location"
127
  msgstr ""
128
 
129
- #: inc/class-widget.php:160
130
  msgid "Locations will autoload, but you may also define custom locations."
131
  msgstr ""
132
 
133
- #: inc/class-widget.php:161
134
  msgid "Enter the name of a location."
135
  msgstr ""
136
 
137
- #: inc/class-widget.php:168
138
  msgid "Location Title"
139
  msgstr ""
140
 
141
- #: inc/class-widget.php:169
142
  msgid "Change how the location is displayed in the widget search field."
143
  msgstr ""
144
 
145
- #: inc/class-widget.php:170
146
  msgid "Leave empty to use the location name."
147
  msgstr ""
148
 
149
- #: inc/class-widget.php:171
150
  msgid ""
151
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
152
  "set the Location Title as \"Denver\", which is simpler."
153
  msgstr ""
154
 
155
- #: inc/class-widget.php:180
156
  msgid "# of Days in Forecast"
157
  msgstr ""
158
 
159
- #: inc/class-widget.php:186
160
  msgid "Include Current Conditions"
161
  msgstr ""
162
 
163
- #: inc/class-widget.php:187
164
  msgid "Add the current conditions to the forecast."
165
  msgstr ""
166
 
167
- #: inc/class-widget.php:193
168
  msgid "Include Night Forecasts"
169
  msgstr ""
170
 
171
- #: inc/class-widget.php:194
172
  msgid "This will result in double the number of forecasts shown."
173
  msgstr ""
174
 
175
- #: inc/class-widget.php:200
176
  msgid "Icon Set"
177
  msgstr ""
178
 
179
- #: inc/class-widget.php:201
180
  msgid ""
181
  "Choose the look and feel of the images that will represent the weather."
182
  msgstr ""
183
 
184
- #: inc/class-widget.php:229
185
  msgid "Widget Template"
186
  msgstr ""
187
 
188
- #: inc/class-widget.php:230
189
  msgid "Choose how you would like to display the forecast."
190
  msgstr ""
191
 
192
- #: inc/class-widget.php:235
193
  msgid "Show in Forecast"
194
  msgstr ""
195
 
196
- #: inc/class-widget.php:240
197
  msgid "Search Form"
198
  msgstr ""
199
 
200
- #: inc/class-widget.php:241
201
  msgid "Allow searching weather forecasts."
202
  msgstr ""
203
 
204
- #: inc/class-widget.php:244
205
  msgid "Weekday Labels"
206
  msgstr ""
207
 
208
- #: inc/class-widget.php:245
209
  msgid "Show the names of the days of the week."
210
  msgstr ""
211
 
212
- #: inc/class-widget.php:248
213
  msgid "Date"
214
  msgstr ""
215
 
216
- #: inc/class-widget.php:249
217
  msgid "Display the date numerically (\"09/14\")."
218
  msgstr ""
219
 
220
- #: inc/class-widget.php:252
221
  msgid "Weather Icon"
222
  msgstr ""
223
 
224
- #: inc/class-widget.php:253
225
  msgid "Icon representing the forecast conditions."
226
  msgstr ""
227
 
228
- #: inc/class-widget.php:256
229
  msgid "Chance of Rain"
230
  msgstr ""
231
 
232
- #: inc/class-widget.php:257
233
  msgid "Display the percent chance of rain."
234
  msgstr ""
235
 
236
- #: inc/class-widget.php:260
237
  msgid "High & Low Temp"
238
  msgstr ""
239
 
240
- #: inc/class-widget.php:261
241
  msgid "Show the high & low temperatures for forecast."
242
  msgstr ""
243
 
244
- #: inc/class-widget.php:264
245
  msgid "Condition Title"
246
  msgstr ""
247
 
248
- #: inc/class-widget.php:265
249
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
250
  msgstr ""
251
 
252
- #: inc/class-widget.php:268
253
  msgid "Forecast Text"
254
  msgstr ""
255
 
256
- #: inc/class-widget.php:269
257
  msgid "Display a description of the forecast, normally in sentence format."
258
  msgstr ""
259
 
260
- #: inc/class-widget.php:272
261
  msgid "Weather Alerts &amp; Warnings"
262
  msgstr ""
263
 
264
- #: inc/class-widget.php:273
265
- msgid ""
266
- "This functionality is currently not working; we are working with "
267
- "Wunderground.com to restore it."
268
  msgstr ""
269
 
270
- #: inc/class-widget.php:289
271
  msgid "Forecast Language"
272
  msgstr ""
273
 
274
- #: inc/class-widget.php:300
275
  msgid "Measurements"
276
  msgstr ""
277
 
278
- #: inc/class-widget.php:303
279
  msgid "Fahrenheit &amp; Inches"
280
  msgstr ""
281
 
282
- #: inc/class-widget.php:306
283
  msgid "Celsius &amp; Meters"
284
  msgstr ""
285
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
+ "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: French (http://www.transifex.com/katzwebservices/wunderground/language/fr/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: fr\n"
14
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
  msgid "Title"
124
  msgstr ""
125
 
126
+ #: inc/class-widget.php:170
127
  msgid "Leave empty to hide the widget title."
128
  msgstr ""
129
 
130
+ #: inc/class-widget.php:176
131
  msgid "Location"
132
  msgstr ""
133
 
134
+ #: inc/class-widget.php:177
135
  msgid "Locations will autoload, but you may also define custom locations."
136
  msgstr ""
137
 
138
+ #: inc/class-widget.php:178
139
  msgid "Enter the name of a location."
140
  msgstr ""
141
 
142
+ #: inc/class-widget.php:185
143
  msgid "Location Title"
144
  msgstr ""
145
 
146
+ #: inc/class-widget.php:186
147
  msgid "Change how the location is displayed in the widget search field."
148
  msgstr ""
149
 
150
+ #: inc/class-widget.php:187
151
  msgid "Leave empty to use the location name."
152
  msgstr ""
153
 
154
+ #: inc/class-widget.php:188
155
  msgid ""
156
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
  "set the Location Title as \"Denver\", which is simpler."
158
  msgstr ""
159
 
160
+ #: inc/class-widget.php:197
161
  msgid "# of Days in Forecast"
162
  msgstr ""
163
 
164
+ #: inc/class-widget.php:203
165
  msgid "Include Current Conditions"
166
  msgstr ""
167
 
168
+ #: inc/class-widget.php:204
169
  msgid "Add the current conditions to the forecast."
170
  msgstr ""
171
 
172
+ #: inc/class-widget.php:210
173
  msgid "Include Night Forecasts"
174
  msgstr ""
175
 
176
+ #: inc/class-widget.php:211
177
  msgid "This will result in double the number of forecasts shown."
178
  msgstr ""
179
 
180
+ #: inc/class-widget.php:217
181
  msgid "Icon Set"
182
  msgstr ""
183
 
184
+ #: inc/class-widget.php:218
185
  msgid ""
186
  "Choose the look and feel of the images that will represent the weather."
187
  msgstr ""
188
 
189
+ #: inc/class-widget.php:246
190
  msgid "Widget Template"
191
  msgstr ""
192
 
193
+ #: inc/class-widget.php:247
194
  msgid "Choose how you would like to display the forecast."
195
  msgstr ""
196
 
197
+ #: inc/class-widget.php:252
198
  msgid "Show in Forecast"
199
  msgstr ""
200
 
201
+ #: inc/class-widget.php:257
202
  msgid "Search Form"
203
  msgstr ""
204
 
205
+ #: inc/class-widget.php:258
206
  msgid "Allow searching weather forecasts."
207
  msgstr ""
208
 
209
+ #: inc/class-widget.php:261
210
  msgid "Weekday Labels"
211
  msgstr ""
212
 
213
+ #: inc/class-widget.php:262
214
  msgid "Show the names of the days of the week."
215
  msgstr ""
216
 
217
+ #: inc/class-widget.php:265
218
  msgid "Date"
219
  msgstr ""
220
 
221
+ #: inc/class-widget.php:266
222
  msgid "Display the date numerically (\"09/14\")."
223
  msgstr ""
224
 
225
+ #: inc/class-widget.php:269
226
  msgid "Weather Icon"
227
  msgstr ""
228
 
229
+ #: inc/class-widget.php:270
230
  msgid "Icon representing the forecast conditions."
231
  msgstr ""
232
 
233
+ #: inc/class-widget.php:273
234
  msgid "Chance of Rain"
235
  msgstr ""
236
 
237
+ #: inc/class-widget.php:274
238
  msgid "Display the percent chance of rain."
239
  msgstr ""
240
 
241
+ #: inc/class-widget.php:277
242
  msgid "High & Low Temp"
243
  msgstr ""
244
 
245
+ #: inc/class-widget.php:278
246
  msgid "Show the high & low temperatures for forecast."
247
  msgstr ""
248
 
249
+ #: inc/class-widget.php:281
250
  msgid "Condition Title"
251
  msgstr ""
252
 
253
+ #: inc/class-widget.php:282
254
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
  msgstr ""
256
 
257
+ #: inc/class-widget.php:285
258
  msgid "Forecast Text"
259
  msgstr ""
260
 
261
+ #: inc/class-widget.php:286
262
  msgid "Display a description of the forecast, normally in sentence format."
263
  msgstr ""
264
 
265
+ #: inc/class-widget.php:289
266
  msgid "Weather Alerts &amp; Warnings"
267
  msgstr ""
268
 
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
 
 
271
  msgstr ""
272
 
273
+ #: inc/class-widget.php:306
274
  msgid "Forecast Language"
275
  msgstr ""
276
 
277
+ #: inc/class-widget.php:317
278
  msgid "Measurements"
279
  msgstr ""
280
 
281
+ #: inc/class-widget.php:320
282
  msgid "Fahrenheit &amp; Inches"
283
  msgstr ""
284
 
285
+ #: inc/class-widget.php:323
286
  msgid "Celsius &amp; Meters"
287
  msgstr ""
288
 
languages/wunderground-he_IL.mo CHANGED
Binary file
languages/wunderground-he_IL.po CHANGED
@@ -4,16 +4,16 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Wunderground\n"
7
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
8
- "PO-Revision-Date: 2014-12-04 20:12+0000\n"
9
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
10
- "Language-Team: Hebrew (Israel) (http://www.transifex.com/projects/p/wunderground/language/he_IL/)\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "Language: he_IL\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
- "X-Generator: Poedit 1.7beta3\n"
17
  "X-Poedit-Basepath: ..\n"
18
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
19
  "X-Poedit-SearchPath-0: .\n"
@@ -115,172 +115,175 @@ msgstr "הוסף תחזית Wunderground.com "
115
  msgid "Wunderground"
116
  msgstr "Wunderground"
117
 
118
- #: inc/class-widget.php:152
 
 
 
 
 
119
  msgid "Title"
120
  msgstr "כותרת"
121
 
122
- #: inc/class-widget.php:153
123
  msgid "Leave empty to hide the widget title."
124
  msgstr "השאר ריק על מנת להסתיר את כותרת הוידגט"
125
 
126
- #: inc/class-widget.php:159
127
  msgid "Location"
128
  msgstr "מיקום"
129
 
130
- #: inc/class-widget.php:160
131
  msgid "Locations will autoload, but you may also define custom locations."
132
  msgstr "מיקמום יטענו אוטומטית. אתה עשוי להגדיר מיקומים ידנית."
133
 
134
- #: inc/class-widget.php:161
135
  msgid "Enter the name of a location."
136
  msgstr "הכנס את שם המיקום"
137
 
138
- #: inc/class-widget.php:168
139
  msgid "Location Title"
140
  msgstr "כותרת המיקום"
141
 
142
- #: inc/class-widget.php:169
143
  msgid "Change how the location is displayed in the widget search field."
144
  msgstr "שנה את אופן ההצגה של המיקום כפי שיוצג בשורת החיפוש של הוידגט"
145
 
146
- #: inc/class-widget.php:170
147
  msgid "Leave empty to use the location name."
148
  msgstr "השאר ריק על מנת להשתמש בשם המיקום הנוכחי"
149
 
150
- #: inc/class-widget.php:171
151
  msgid ""
152
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
153
  "set the Location Title as \"Denver\", which is simpler."
154
  msgstr "דוגמא: אם המקום הינו \"דנוור קולורדו\", אתה יכול לרשום פשוט \"דנוור\""
155
 
156
- #: inc/class-widget.php:180
157
  msgid "# of Days in Forecast"
158
  msgstr "# ימים בתחזית"
159
 
160
- #: inc/class-widget.php:186
161
  msgid "Include Current Conditions"
162
  msgstr "כולל מצב נוכחי"
163
 
164
- #: inc/class-widget.php:187
165
  msgid "Add the current conditions to the forecast."
166
  msgstr "הוסף מצב נוכחי לתחזית"
167
 
168
- #: inc/class-widget.php:193
169
  msgid "Include Night Forecasts"
170
  msgstr "כולל תחזיות ליליות"
171
 
172
- #: inc/class-widget.php:194
173
  msgid "This will result in double the number of forecasts shown."
174
  msgstr "זה יציג תוצאה במספר כפול בתחזית המוצגת."
175
 
176
- #: inc/class-widget.php:200
177
  msgid "Icon Set"
178
  msgstr "סט איקונים"
179
 
180
- #: inc/class-widget.php:201
181
  msgid ""
182
  "Choose the look and feel of the images that will represent the weather."
183
  msgstr "בחר את התמונה שתייצג את מזג האויר"
184
 
185
- #: inc/class-widget.php:229
186
  msgid "Widget Template"
187
  msgstr "תבנית ווידגט"
188
 
189
- #: inc/class-widget.php:230
190
  msgid "Choose how you would like to display the forecast."
191
  msgstr "בחר כיצד ברצונך להציג את התחזית"
192
 
193
- #: inc/class-widget.php:235
194
  msgid "Show in Forecast"
195
  msgstr "הצג בתחזית"
196
 
197
- #: inc/class-widget.php:240
198
  msgid "Search Form"
199
  msgstr "טופס חיפוש"
200
 
201
- #: inc/class-widget.php:241
202
  msgid "Allow searching weather forecasts."
203
  msgstr "אפשר חיפוש תחזיות מזג אוויר"
204
 
205
- #: inc/class-widget.php:244
206
  msgid "Weekday Labels"
207
  msgstr "שמות הימים"
208
 
209
- #: inc/class-widget.php:245
210
  msgid "Show the names of the days of the week."
211
  msgstr "הצג את שמות הימים בשבוע"
212
 
213
- #: inc/class-widget.php:248
214
  msgid "Date"
215
  msgstr "תאריך"
216
 
217
- #: inc/class-widget.php:249
218
  msgid "Display the date numerically (\"09/14\")."
219
  msgstr "הצג תאריך באופן מספרי (\"09/14\")."
220
 
221
- #: inc/class-widget.php:252
222
  msgid "Weather Icon"
223
  msgstr "איקון מזג אוויר"
224
 
225
- #: inc/class-widget.php:253
226
  msgid "Icon representing the forecast conditions."
227
  msgstr "האיקון מייצג את מצב התחזיות."
228
 
229
- #: inc/class-widget.php:256
230
  msgid "Chance of Rain"
231
  msgstr "סיכוי לגשם"
232
 
233
- #: inc/class-widget.php:257
234
  msgid "Display the percent chance of rain."
235
  msgstr "הצג את הסיכוי לגשם"
236
 
237
- #: inc/class-widget.php:260
238
  msgid "High & Low Temp"
239
  msgstr "טמפרטורות גבוהות ונמוכות"
240
 
241
- #: inc/class-widget.php:261
242
  msgid "Show the high & low temperatures for forecast."
243
  msgstr "הצג טמפרטורות המינימום והמקסימום בתחזית"
244
 
245
- #: inc/class-widget.php:264
246
  msgid "Condition Title"
247
  msgstr "כותרת המצב"
248
 
249
- #: inc/class-widget.php:265
250
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
251
  msgstr "סיכום מצב בקצרה (\"בהיר, מעונן חלקית, מעונן וכו')."
252
 
253
- #: inc/class-widget.php:268
254
  msgid "Forecast Text"
255
  msgstr "תיאור התחזית"
256
 
257
- #: inc/class-widget.php:269
258
  msgid "Display a description of the forecast, normally in sentence format."
259
  msgstr "הצג תיאור התחזית. בדרך כלל במבנה שורה בודדת."
260
 
261
- #: inc/class-widget.php:272
262
  msgid "Weather Alerts &amp; Warnings"
263
  msgstr "התראות מזג אוויר"
264
 
265
- #: inc/class-widget.php:273
266
- msgid ""
267
- "This functionality is currently not working; we are working with "
268
- "Wunderground.com to restore it."
269
- msgstr "הפונקציונאליות לא עובדת כרגע: אנו עובדים בשיתוף Wunderground.com על מנת לפתור זאת."
270
 
271
- #: inc/class-widget.php:289
272
  msgid "Forecast Language"
273
  msgstr "שפת התחזית"
274
 
275
- #: inc/class-widget.php:300
276
  msgid "Measurements"
277
  msgstr "מדדים"
278
 
279
- #: inc/class-widget.php:303
280
  msgid "Fahrenheit &amp; Inches"
281
  msgstr "פרנהייט ואינצ'ים"
282
 
283
- #: inc/class-widget.php:306
284
  msgid "Celsius &amp; Meters"
285
  msgstr "צלזיוס ומטרים"
286
 
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Wunderground\n"
7
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
8
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
9
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
10
+ "Language-Team: Hebrew (Israel) (http://www.transifex.com/katzwebservices/wunderground/language/he_IL/)\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "Language: he_IL\n"
15
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
16
+ "X-Generator: Poedit 1.7.1\n"
17
  "X-Poedit-Basepath: ..\n"
18
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
19
  "X-Poedit-SearchPath-0: .\n"
115
  msgid "Wunderground"
116
  msgstr "Wunderground"
117
 
118
+ #: inc/class-widget.php:132
119
+ #, php-format
120
+ msgid "There was an error fetching the forecast: %s"
121
+ msgstr ""
122
+
123
+ #: inc/class-widget.php:169
124
  msgid "Title"
125
  msgstr "כותרת"
126
 
127
+ #: inc/class-widget.php:170
128
  msgid "Leave empty to hide the widget title."
129
  msgstr "השאר ריק על מנת להסתיר את כותרת הוידגט"
130
 
131
+ #: inc/class-widget.php:176
132
  msgid "Location"
133
  msgstr "מיקום"
134
 
135
+ #: inc/class-widget.php:177
136
  msgid "Locations will autoload, but you may also define custom locations."
137
  msgstr "מיקמום יטענו אוטומטית. אתה עשוי להגדיר מיקומים ידנית."
138
 
139
+ #: inc/class-widget.php:178
140
  msgid "Enter the name of a location."
141
  msgstr "הכנס את שם המיקום"
142
 
143
+ #: inc/class-widget.php:185
144
  msgid "Location Title"
145
  msgstr "כותרת המיקום"
146
 
147
+ #: inc/class-widget.php:186
148
  msgid "Change how the location is displayed in the widget search field."
149
  msgstr "שנה את אופן ההצגה של המיקום כפי שיוצג בשורת החיפוש של הוידגט"
150
 
151
+ #: inc/class-widget.php:187
152
  msgid "Leave empty to use the location name."
153
  msgstr "השאר ריק על מנת להשתמש בשם המיקום הנוכחי"
154
 
155
+ #: inc/class-widget.php:188
156
  msgid ""
157
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
158
  "set the Location Title as \"Denver\", which is simpler."
159
  msgstr "דוגמא: אם המקום הינו \"דנוור קולורדו\", אתה יכול לרשום פשוט \"דנוור\""
160
 
161
+ #: inc/class-widget.php:197
162
  msgid "# of Days in Forecast"
163
  msgstr "# ימים בתחזית"
164
 
165
+ #: inc/class-widget.php:203
166
  msgid "Include Current Conditions"
167
  msgstr "כולל מצב נוכחי"
168
 
169
+ #: inc/class-widget.php:204
170
  msgid "Add the current conditions to the forecast."
171
  msgstr "הוסף מצב נוכחי לתחזית"
172
 
173
+ #: inc/class-widget.php:210
174
  msgid "Include Night Forecasts"
175
  msgstr "כולל תחזיות ליליות"
176
 
177
+ #: inc/class-widget.php:211
178
  msgid "This will result in double the number of forecasts shown."
179
  msgstr "זה יציג תוצאה במספר כפול בתחזית המוצגת."
180
 
181
+ #: inc/class-widget.php:217
182
  msgid "Icon Set"
183
  msgstr "סט איקונים"
184
 
185
+ #: inc/class-widget.php:218
186
  msgid ""
187
  "Choose the look and feel of the images that will represent the weather."
188
  msgstr "בחר את התמונה שתייצג את מזג האויר"
189
 
190
+ #: inc/class-widget.php:246
191
  msgid "Widget Template"
192
  msgstr "תבנית ווידגט"
193
 
194
+ #: inc/class-widget.php:247
195
  msgid "Choose how you would like to display the forecast."
196
  msgstr "בחר כיצד ברצונך להציג את התחזית"
197
 
198
+ #: inc/class-widget.php:252
199
  msgid "Show in Forecast"
200
  msgstr "הצג בתחזית"
201
 
202
+ #: inc/class-widget.php:257
203
  msgid "Search Form"
204
  msgstr "טופס חיפוש"
205
 
206
+ #: inc/class-widget.php:258
207
  msgid "Allow searching weather forecasts."
208
  msgstr "אפשר חיפוש תחזיות מזג אוויר"
209
 
210
+ #: inc/class-widget.php:261
211
  msgid "Weekday Labels"
212
  msgstr "שמות הימים"
213
 
214
+ #: inc/class-widget.php:262
215
  msgid "Show the names of the days of the week."
216
  msgstr "הצג את שמות הימים בשבוע"
217
 
218
+ #: inc/class-widget.php:265
219
  msgid "Date"
220
  msgstr "תאריך"
221
 
222
+ #: inc/class-widget.php:266
223
  msgid "Display the date numerically (\"09/14\")."
224
  msgstr "הצג תאריך באופן מספרי (\"09/14\")."
225
 
226
+ #: inc/class-widget.php:269
227
  msgid "Weather Icon"
228
  msgstr "איקון מזג אוויר"
229
 
230
+ #: inc/class-widget.php:270
231
  msgid "Icon representing the forecast conditions."
232
  msgstr "האיקון מייצג את מצב התחזיות."
233
 
234
+ #: inc/class-widget.php:273
235
  msgid "Chance of Rain"
236
  msgstr "סיכוי לגשם"
237
 
238
+ #: inc/class-widget.php:274
239
  msgid "Display the percent chance of rain."
240
  msgstr "הצג את הסיכוי לגשם"
241
 
242
+ #: inc/class-widget.php:277
243
  msgid "High & Low Temp"
244
  msgstr "טמפרטורות גבוהות ונמוכות"
245
 
246
+ #: inc/class-widget.php:278
247
  msgid "Show the high & low temperatures for forecast."
248
  msgstr "הצג טמפרטורות המינימום והמקסימום בתחזית"
249
 
250
+ #: inc/class-widget.php:281
251
  msgid "Condition Title"
252
  msgstr "כותרת המצב"
253
 
254
+ #: inc/class-widget.php:282
255
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
256
  msgstr "סיכום מצב בקצרה (\"בהיר, מעונן חלקית, מעונן וכו')."
257
 
258
+ #: inc/class-widget.php:285
259
  msgid "Forecast Text"
260
  msgstr "תיאור התחזית"
261
 
262
+ #: inc/class-widget.php:286
263
  msgid "Display a description of the forecast, normally in sentence format."
264
  msgstr "הצג תיאור התחזית. בדרך כלל במבנה שורה בודדת."
265
 
266
+ #: inc/class-widget.php:289
267
  msgid "Weather Alerts &amp; Warnings"
268
  msgstr "התראות מזג אוויר"
269
 
270
+ #: inc/class-widget.php:290
271
+ msgid "Display Severe Weather alerts and warnings."
272
+ msgstr ""
 
 
273
 
274
+ #: inc/class-widget.php:306
275
  msgid "Forecast Language"
276
  msgstr "שפת התחזית"
277
 
278
+ #: inc/class-widget.php:317
279
  msgid "Measurements"
280
  msgstr "מדדים"
281
 
282
+ #: inc/class-widget.php:320
283
  msgid "Fahrenheit &amp; Inches"
284
  msgstr "פרנהייט ואינצ'ים"
285
 
286
+ #: inc/class-widget.php:323
287
  msgid "Celsius &amp; Meters"
288
  msgstr "צלזיוס ומטרים"
289
 
languages/wunderground-is.mo CHANGED
Binary file
languages/wunderground-is.po CHANGED
@@ -3,16 +3,16 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
7
- "PO-Revision-Date: 2014-06-06 15:48+0000\n"
8
- "Last-Translator: Katz Web Services, Inc. <support@katz.co>\n"
9
- "Language-Team: Icelandic (http://www.transifex.com/projects/p/wunderground/language/is/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: is\n"
14
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
- "X-Generator: Poedit 1.7beta3\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
@@ -114,172 +114,175 @@ msgstr ""
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
- #: inc/class-widget.php:152
 
 
 
 
 
118
  msgid "Title"
119
  msgstr ""
120
 
121
- #: inc/class-widget.php:153
122
  msgid "Leave empty to hide the widget title."
123
  msgstr ""
124
 
125
- #: inc/class-widget.php:159
126
  msgid "Location"
127
  msgstr ""
128
 
129
- #: inc/class-widget.php:160
130
  msgid "Locations will autoload, but you may also define custom locations."
131
  msgstr ""
132
 
133
- #: inc/class-widget.php:161
134
  msgid "Enter the name of a location."
135
  msgstr ""
136
 
137
- #: inc/class-widget.php:168
138
  msgid "Location Title"
139
  msgstr ""
140
 
141
- #: inc/class-widget.php:169
142
  msgid "Change how the location is displayed in the widget search field."
143
  msgstr ""
144
 
145
- #: inc/class-widget.php:170
146
  msgid "Leave empty to use the location name."
147
  msgstr ""
148
 
149
- #: inc/class-widget.php:171
150
  msgid ""
151
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
152
  "set the Location Title as \"Denver\", which is simpler."
153
  msgstr ""
154
 
155
- #: inc/class-widget.php:180
156
  msgid "# of Days in Forecast"
157
  msgstr ""
158
 
159
- #: inc/class-widget.php:186
160
  msgid "Include Current Conditions"
161
  msgstr ""
162
 
163
- #: inc/class-widget.php:187
164
  msgid "Add the current conditions to the forecast."
165
  msgstr ""
166
 
167
- #: inc/class-widget.php:193
168
  msgid "Include Night Forecasts"
169
  msgstr ""
170
 
171
- #: inc/class-widget.php:194
172
  msgid "This will result in double the number of forecasts shown."
173
  msgstr ""
174
 
175
- #: inc/class-widget.php:200
176
  msgid "Icon Set"
177
  msgstr ""
178
 
179
- #: inc/class-widget.php:201
180
  msgid ""
181
  "Choose the look and feel of the images that will represent the weather."
182
  msgstr ""
183
 
184
- #: inc/class-widget.php:229
185
  msgid "Widget Template"
186
  msgstr ""
187
 
188
- #: inc/class-widget.php:230
189
  msgid "Choose how you would like to display the forecast."
190
  msgstr ""
191
 
192
- #: inc/class-widget.php:235
193
  msgid "Show in Forecast"
194
  msgstr ""
195
 
196
- #: inc/class-widget.php:240
197
  msgid "Search Form"
198
  msgstr ""
199
 
200
- #: inc/class-widget.php:241
201
  msgid "Allow searching weather forecasts."
202
  msgstr ""
203
 
204
- #: inc/class-widget.php:244
205
  msgid "Weekday Labels"
206
  msgstr ""
207
 
208
- #: inc/class-widget.php:245
209
  msgid "Show the names of the days of the week."
210
  msgstr ""
211
 
212
- #: inc/class-widget.php:248
213
  msgid "Date"
214
  msgstr ""
215
 
216
- #: inc/class-widget.php:249
217
  msgid "Display the date numerically (\"09/14\")."
218
  msgstr ""
219
 
220
- #: inc/class-widget.php:252
221
  msgid "Weather Icon"
222
  msgstr ""
223
 
224
- #: inc/class-widget.php:253
225
  msgid "Icon representing the forecast conditions."
226
  msgstr ""
227
 
228
- #: inc/class-widget.php:256
229
  msgid "Chance of Rain"
230
  msgstr ""
231
 
232
- #: inc/class-widget.php:257
233
  msgid "Display the percent chance of rain."
234
  msgstr ""
235
 
236
- #: inc/class-widget.php:260
237
  msgid "High & Low Temp"
238
  msgstr ""
239
 
240
- #: inc/class-widget.php:261
241
  msgid "Show the high & low temperatures for forecast."
242
  msgstr ""
243
 
244
- #: inc/class-widget.php:264
245
  msgid "Condition Title"
246
  msgstr ""
247
 
248
- #: inc/class-widget.php:265
249
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
250
  msgstr ""
251
 
252
- #: inc/class-widget.php:268
253
  msgid "Forecast Text"
254
  msgstr ""
255
 
256
- #: inc/class-widget.php:269
257
  msgid "Display a description of the forecast, normally in sentence format."
258
  msgstr ""
259
 
260
- #: inc/class-widget.php:272
261
  msgid "Weather Alerts &amp; Warnings"
262
  msgstr ""
263
 
264
- #: inc/class-widget.php:273
265
- msgid ""
266
- "This functionality is currently not working; we are working with "
267
- "Wunderground.com to restore it."
268
  msgstr ""
269
 
270
- #: inc/class-widget.php:289
271
  msgid "Forecast Language"
272
  msgstr ""
273
 
274
- #: inc/class-widget.php:300
275
  msgid "Measurements"
276
  msgstr ""
277
 
278
- #: inc/class-widget.php:303
279
  msgid "Fahrenheit &amp; Inches"
280
  msgstr ""
281
 
282
- #: inc/class-widget.php:306
283
  msgid "Celsius &amp; Meters"
284
  msgstr ""
285
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
+ "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: Icelandic (http://www.transifex.com/katzwebservices/wunderground/language/is/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: is\n"
14
+ "Plural-Forms: nplurals=2; plural=(n % 10 != 1 || n % 100 == 11);\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
  msgid "Title"
124
  msgstr ""
125
 
126
+ #: inc/class-widget.php:170
127
  msgid "Leave empty to hide the widget title."
128
  msgstr ""
129
 
130
+ #: inc/class-widget.php:176
131
  msgid "Location"
132
  msgstr ""
133
 
134
+ #: inc/class-widget.php:177
135
  msgid "Locations will autoload, but you may also define custom locations."
136
  msgstr ""
137
 
138
+ #: inc/class-widget.php:178
139
  msgid "Enter the name of a location."
140
  msgstr ""
141
 
142
+ #: inc/class-widget.php:185
143
  msgid "Location Title"
144
  msgstr ""
145
 
146
+ #: inc/class-widget.php:186
147
  msgid "Change how the location is displayed in the widget search field."
148
  msgstr ""
149
 
150
+ #: inc/class-widget.php:187
151
  msgid "Leave empty to use the location name."
152
  msgstr ""
153
 
154
+ #: inc/class-widget.php:188
155
  msgid ""
156
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
  "set the Location Title as \"Denver\", which is simpler."
158
  msgstr ""
159
 
160
+ #: inc/class-widget.php:197
161
  msgid "# of Days in Forecast"
162
  msgstr ""
163
 
164
+ #: inc/class-widget.php:203
165
  msgid "Include Current Conditions"
166
  msgstr ""
167
 
168
+ #: inc/class-widget.php:204
169
  msgid "Add the current conditions to the forecast."
170
  msgstr ""
171
 
172
+ #: inc/class-widget.php:210
173
  msgid "Include Night Forecasts"
174
  msgstr ""
175
 
176
+ #: inc/class-widget.php:211
177
  msgid "This will result in double the number of forecasts shown."
178
  msgstr ""
179
 
180
+ #: inc/class-widget.php:217
181
  msgid "Icon Set"
182
  msgstr ""
183
 
184
+ #: inc/class-widget.php:218
185
  msgid ""
186
  "Choose the look and feel of the images that will represent the weather."
187
  msgstr ""
188
 
189
+ #: inc/class-widget.php:246
190
  msgid "Widget Template"
191
  msgstr ""
192
 
193
+ #: inc/class-widget.php:247
194
  msgid "Choose how you would like to display the forecast."
195
  msgstr ""
196
 
197
+ #: inc/class-widget.php:252
198
  msgid "Show in Forecast"
199
  msgstr ""
200
 
201
+ #: inc/class-widget.php:257
202
  msgid "Search Form"
203
  msgstr ""
204
 
205
+ #: inc/class-widget.php:258
206
  msgid "Allow searching weather forecasts."
207
  msgstr ""
208
 
209
+ #: inc/class-widget.php:261
210
  msgid "Weekday Labels"
211
  msgstr ""
212
 
213
+ #: inc/class-widget.php:262
214
  msgid "Show the names of the days of the week."
215
  msgstr ""
216
 
217
+ #: inc/class-widget.php:265
218
  msgid "Date"
219
  msgstr ""
220
 
221
+ #: inc/class-widget.php:266
222
  msgid "Display the date numerically (\"09/14\")."
223
  msgstr ""
224
 
225
+ #: inc/class-widget.php:269
226
  msgid "Weather Icon"
227
  msgstr ""
228
 
229
+ #: inc/class-widget.php:270
230
  msgid "Icon representing the forecast conditions."
231
  msgstr ""
232
 
233
+ #: inc/class-widget.php:273
234
  msgid "Chance of Rain"
235
  msgstr ""
236
 
237
+ #: inc/class-widget.php:274
238
  msgid "Display the percent chance of rain."
239
  msgstr ""
240
 
241
+ #: inc/class-widget.php:277
242
  msgid "High & Low Temp"
243
  msgstr ""
244
 
245
+ #: inc/class-widget.php:278
246
  msgid "Show the high & low temperatures for forecast."
247
  msgstr ""
248
 
249
+ #: inc/class-widget.php:281
250
  msgid "Condition Title"
251
  msgstr ""
252
 
253
+ #: inc/class-widget.php:282
254
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
  msgstr ""
256
 
257
+ #: inc/class-widget.php:285
258
  msgid "Forecast Text"
259
  msgstr ""
260
 
261
+ #: inc/class-widget.php:286
262
  msgid "Display a description of the forecast, normally in sentence format."
263
  msgstr ""
264
 
265
+ #: inc/class-widget.php:289
266
  msgid "Weather Alerts &amp; Warnings"
267
  msgstr ""
268
 
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
 
 
271
  msgstr ""
272
 
273
+ #: inc/class-widget.php:306
274
  msgid "Forecast Language"
275
  msgstr ""
276
 
277
+ #: inc/class-widget.php:317
278
  msgid "Measurements"
279
  msgstr ""
280
 
281
+ #: inc/class-widget.php:320
282
  msgid "Fahrenheit &amp; Inches"
283
  msgstr ""
284
 
285
+ #: inc/class-widget.php:323
286
  msgid "Celsius &amp; Meters"
287
  msgstr ""
288
 
languages/wunderground-it_IT.mo ADDED
Binary file
languages/wunderground-it_IT.po ADDED
@@ -0,0 +1,671 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Weather Underground\n"
4
+ "POT-Creation-Date: 2015-08-23 00:22+0200\n"
5
+ "PO-Revision-Date: 2015-08-23 00:55+0200\n"
6
+ "Last-Translator: Gabriele Lauricella <gab.lau@gmail.com>\n"
7
+ "Language-Team: Gabriele Lauricella <gab.lau@gmail.com>\n"
8
+ "Language: it_IT\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.8.4\n"
13
+ "X-Poedit-Basepath: ..\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
16
+ "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
17
+ "_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
19
+ "X-Poedit-SearchPath-0: .\n"
20
+ "X-Poedit-SearchPathExcluded-0: vendor\n"
21
+
22
+ #: inc/class-template.php:67
23
+ #, php-format
24
+ msgid "Statement as of %s"
25
+ msgstr "Bollettino su %s"
26
+
27
+ #: inc/class-template.php:68
28
+ msgid "The location could not be found."
29
+ msgstr "Localita non trovata"
30
+
31
+ #: inc/class-template.php:69
32
+ #, php-format
33
+ msgid "%s%%"
34
+ msgstr "%s%%"
35
+
36
+ #: inc/class-template.php:70
37
+ #, php-format
38
+ msgid "%s%% Chance of Precipitation"
39
+ msgstr "%s%% Possibilità di precipitazioni"
40
+
41
+ #: inc/class-template.php:71
42
+ msgid "Currently"
43
+ msgstr "Attuali"
44
+
45
+ #: inc/class-template.php:72
46
+ #, php-format
47
+ msgid "High %d&deg;"
48
+ msgstr "Max %d&deg;"
49
+
50
+ #: inc/class-template.php:73
51
+ #, php-format
52
+ msgid "Low %d&deg;"
53
+ msgstr "Min %d&deg;"
54
+
55
+ #: inc/class-template.php:74
56
+ #, php-format
57
+ msgid "%d&deg;"
58
+ msgstr "%d&deg;"
59
+
60
+ #: inc/class-template.php:75
61
+ #, php-format
62
+ msgid "View the %s forecast on Wunderground.com"
63
+ msgstr "Vedi le previsioni di %s su Wunderground.com"
64
+
65
+ #: inc/class-template.php:76
66
+ msgctxt "Weather alert issued date/time"
67
+ msgid "Issued:"
68
+ msgstr "Rilasciato:"
69
+
70
+ #: inc/class-template.php:77
71
+ msgctxt "Weather alert expires date/time"
72
+ msgid "Expires:"
73
+ msgstr "Scadenza:"
74
+
75
+ #: inc/class-template.php:149
76
+ msgid "Current Conditions"
77
+ msgstr "Condizioni Attuali"
78
+
79
+ #: inc/class-template.php:150
80
+ msgid "Simple display of the current conditions."
81
+ msgstr "Visualizzazione semplice delle condizioni attuali."
82
+
83
+ #: inc/class-template.php:155
84
+ msgid "Grid Forecast"
85
+ msgstr "Previsioni in griglia"
86
+
87
+ #: inc/class-template.php:156
88
+ msgid "Scales to any screen size."
89
+ msgstr "Scala a qualsiasi dimensione dello schermo"
90
+
91
+ #: inc/class-template.php:161
92
+ msgid "Details Table"
93
+ msgstr "Tabella Dettagliata"
94
+
95
+ #: inc/class-template.php:162
96
+ msgid ""
97
+ "Display the forecast in a table with rows. Great for in-depth forecast "
98
+ "display."
99
+ msgstr ""
100
+ "Mostra le previsioni in tabella con righe. Buono per previsioni dettagliate"
101
+
102
+ #: inc/class-template.php:167
103
+ msgid "Horizontal Table"
104
+ msgstr "Tabella Orizzontale"
105
+
106
+ #: inc/class-template.php:168
107
+ msgid ""
108
+ "Display the forecast in a table with columns. Great for forecast summaries."
109
+ msgstr ""
110
+ "Mostra le previsioni in tabella con colonne. Buono per il riepilogo "
111
+ "previsioni"
112
+
113
+ #: inc/class-widget.php:43
114
+ msgid "Add a Wunderground.com forecast"
115
+ msgstr "Aggiungi le previsione di Wunderground.com"
116
+
117
+ #: inc/class-widget.php:48 inc/functions.php:176
118
+ msgid "Wunderground"
119
+ msgstr "Wunderground"
120
+
121
+ #: inc/class-widget.php:152
122
+ msgid "Title"
123
+ msgstr "Titolo"
124
+
125
+ #: inc/class-widget.php:153
126
+ msgid "Leave empty to hide the widget title."
127
+ msgstr "Lasciare vuoto per nascondere il titolo del widget."
128
+
129
+ #: inc/class-widget.php:159
130
+ msgid "Location"
131
+ msgstr "Località"
132
+
133
+ #: inc/class-widget.php:160
134
+ msgid "Locations will autoload, but you may also define custom locations."
135
+ msgstr ""
136
+ "La località sarà caricata automaticamente, ma si può anche definire località "
137
+ "personalizzate."
138
+
139
+ #: inc/class-widget.php:161
140
+ msgid "Enter the name of a location."
141
+ msgstr "Inserire il nome di una località."
142
+
143
+ #: inc/class-widget.php:168
144
+ msgid "Location Title"
145
+ msgstr "Titolo Località"
146
+
147
+ #: inc/class-widget.php:169
148
+ msgid "Change how the location is displayed in the widget search field."
149
+ msgstr ""
150
+ "Modificare il modo in cui la località verrà visualizzata nel campo di "
151
+ "ricerca del widget."
152
+
153
+ #: inc/class-widget.php:170
154
+ msgid "Leave empty to use the location name."
155
+ msgstr "Lasciare vuoto per usare il nome della località."
156
+
157
+ #: inc/class-widget.php:171
158
+ msgid ""
159
+ "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
160
+ "set the Location Title as \"Denver\", which is simpler."
161
+ msgstr ""
162
+ "Esempio: se la Località è impostata su \"Roma, Italia\", si può scegliere di "
163
+ "impostare la posizione titolo come \"Roma\", che è più semplice."
164
+
165
+ #: inc/class-widget.php:180
166
+ msgid "# of Days in Forecast"
167
+ msgstr "# di Giorni di Previsione"
168
+
169
+ #: inc/class-widget.php:186
170
+ msgid "Include Current Conditions"
171
+ msgstr "Includi le Condizioni Attuali"
172
+
173
+ #: inc/class-widget.php:187
174
+ msgid "Add the current conditions to the forecast."
175
+ msgstr "Aggiungi la condizioni attuali alle previsioni"
176
+
177
+ #: inc/class-widget.php:193
178
+ msgid "Include Night Forecasts"
179
+ msgstr "Includi le Previsioni Notturne"
180
+
181
+ #: inc/class-widget.php:194
182
+ msgid "This will result in double the number of forecasts shown."
183
+ msgstr "Saranno duplicate le informazioni meteo mostrate."
184
+
185
+ #: inc/class-widget.php:200
186
+ msgid "Icon Set"
187
+ msgstr "Set icone"
188
+
189
+ #: inc/class-widget.php:201
190
+ msgid "Choose the look and feel of the images that will represent the weather."
191
+ msgstr "Scegli l'aspetto grafico delle immagini che rappresenteranno il meteo."
192
+
193
+ #: inc/class-widget.php:229
194
+ msgid "Widget Template"
195
+ msgstr "Modello di Widget"
196
+
197
+ #: inc/class-widget.php:230
198
+ msgid "Choose how you would like to display the forecast."
199
+ msgstr "Scegliere come si desidera visualizzare le previsioni."
200
+
201
+ #: inc/class-widget.php:235
202
+ msgid "Show in Forecast"
203
+ msgstr "Mostra nelle Previsioni"
204
+
205
+ #: inc/class-widget.php:240
206
+ msgid "Search Form"
207
+ msgstr "Modulo di ricerca"
208
+
209
+ #: inc/class-widget.php:241
210
+ msgid "Allow searching weather forecasts."
211
+ msgstr "Permetti di cercare previsioni meteo."
212
+
213
+ #: inc/class-widget.php:244
214
+ msgid "Weekday Labels"
215
+ msgstr "Etichette giorno della settimana"
216
+
217
+ #: inc/class-widget.php:245
218
+ msgid "Show the names of the days of the week."
219
+ msgstr "Mostra il nome del giorno della settimana."
220
+
221
+ #: inc/class-widget.php:248
222
+ msgid "Date"
223
+ msgstr "Data"
224
+
225
+ #: inc/class-widget.php:249
226
+ msgid "Display the date numerically (\"09/14\")."
227
+ msgstr "Mostra la data numerica (\"09/14\")."
228
+
229
+ #: inc/class-widget.php:252
230
+ msgid "Weather Icon"
231
+ msgstr "Icone Meteo"
232
+
233
+ #: inc/class-widget.php:253
234
+ msgid "Icon representing the forecast conditions."
235
+ msgstr "Icona che illustra le condizioni meteo."
236
+
237
+ #: inc/class-widget.php:256
238
+ msgid "Chance of Rain"
239
+ msgstr "Possibilità di Pioggia"
240
+
241
+ #: inc/class-widget.php:257
242
+ msgid "Display the percent chance of rain."
243
+ msgstr "Mostra la percentuale di possibilità di pioggia"
244
+
245
+ #: inc/class-widget.php:260
246
+ msgid "High & Low Temp"
247
+ msgstr "Massima e Minima Temperatura"
248
+
249
+ #: inc/class-widget.php:261
250
+ msgid "Show the high & low temperatures for forecast."
251
+ msgstr "Mostra massima e minima temperatura per le previsioni."
252
+
253
+ #: inc/class-widget.php:264
254
+ msgid "Condition Title"
255
+ msgstr "Titolo Condizioni"
256
+
257
+ #: inc/class-widget.php:265
258
+ msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
259
+ msgstr ""
260
+ "Breve riepilogo delle condizioni (\"Sereno\", \"Parzialmente Nuvoloso\", "
261
+ "ecc.)."
262
+
263
+ #: inc/class-widget.php:268
264
+ msgid "Forecast Text"
265
+ msgstr "Testo Previsioni"
266
+
267
+ #: inc/class-widget.php:269
268
+ msgid "Display a description of the forecast, normally in sentence format."
269
+ msgstr ""
270
+ "Visualizzare una descrizione delle previsioni, normalmente sotto forma di "
271
+ "frase."
272
+
273
+ #: inc/class-widget.php:272
274
+ msgid "Weather Alerts &amp; Warnings"
275
+ msgstr "Allarmi Meteo &amp; Avvisi"
276
+
277
+ #: inc/class-widget.php:273
278
+ msgid "Display Severe Weather alerts and warnings."
279
+ msgstr "Visualizzare avvisi di maltempo e avvertimenti."
280
+
281
+ #: inc/class-widget.php:289
282
+ msgid "Forecast Language"
283
+ msgstr "Lingua Previsioni"
284
+
285
+ #: inc/class-widget.php:300
286
+ msgid "Measurements"
287
+ msgstr "Unità di misura"
288
+
289
+ #: inc/class-widget.php:303
290
+ msgid "Fahrenheit &amp; Inches"
291
+ msgstr "Fahrenheit &amp; Pollici"
292
+
293
+ #: inc/class-widget.php:306
294
+ msgid "Celsius &amp; Meters"
295
+ msgstr "Celsius &amp; Metri"
296
+
297
+ #: inc/functions.php:44
298
+ msgid "Weather Forecast"
299
+ msgstr "Previsioni del tempo"
300
+
301
+ #: inc/functions.php:161 inc/functions.php:178
302
+ msgid "Incredible"
303
+ msgstr "Incredibile"
304
+
305
+ #: inc/functions.php:162 inc/functions.php:177
306
+ msgid "Elemental"
307
+ msgstr "Elementare"
308
+
309
+ #: inc/functions.php:163 inc/functions.php:179
310
+ msgid "Helen"
311
+ msgstr "Elena"
312
+
313
+ #: inc/functions.php:164 inc/functions.php:181
314
+ msgid "Default"
315
+ msgstr "Predefinito"
316
+
317
+ #: inc/functions.php:165 inc/functions.php:182
318
+ msgid "Smiley"
319
+ msgstr "Sorridente"
320
+
321
+ #: inc/functions.php:166 inc/functions.php:183
322
+ msgid "Generic"
323
+ msgstr "Generico"
324
+
325
+ #: inc/functions.php:167 inc/functions.php:184
326
+ msgid "Old School"
327
+ msgstr "Vecchia Scuola"
328
+
329
+ #: inc/functions.php:168 inc/functions.php:185
330
+ msgid "Cartoon"
331
+ msgstr "Vignetta"
332
+
333
+ #: inc/functions.php:169 inc/functions.php:186
334
+ msgid "Mobile"
335
+ msgstr "Cellulare"
336
+
337
+ #: inc/functions.php:170 inc/functions.php:187
338
+ msgid "Simple"
339
+ msgstr "Semplice"
340
+
341
+ #: inc/functions.php:171 inc/functions.php:188
342
+ msgid "Contemporary"
343
+ msgstr "Contemporaneo"
344
+
345
+ #: inc/functions.php:363
346
+ msgid "Afrikaans"
347
+ msgstr "Afrikaans"
348
+
349
+ #: inc/functions.php:368
350
+ msgid "Albanian"
351
+ msgstr "Albanese"
352
+
353
+ #: inc/functions.php:373
354
+ msgid "Arabic"
355
+ msgstr "Arabo"
356
+
357
+ #: inc/functions.php:379
358
+ msgid "Armenian"
359
+ msgstr "Armeno"
360
+
361
+ #: inc/functions.php:384
362
+ msgid "Azerbaijani"
363
+ msgstr "Azero"
364
+
365
+ #: inc/functions.php:389
366
+ msgid "Basque"
367
+ msgstr "Basco"
368
+
369
+ #: inc/functions.php:394
370
+ msgid "Belarusian"
371
+ msgstr "Bielorusso"
372
+
373
+ #: inc/functions.php:399
374
+ msgid "Bulgarian"
375
+ msgstr "Bulgaro"
376
+
377
+ #: inc/functions.php:404
378
+ msgid "British English"
379
+ msgstr "Inglese Britannico"
380
+
381
+ #: inc/functions.php:409
382
+ msgid "Burmese"
383
+ msgstr "Birmano"
384
+
385
+ #: inc/functions.php:414
386
+ msgid "Catalan"
387
+ msgstr "Catalano"
388
+
389
+ #: inc/functions.php:419
390
+ msgid "Chinese - Simplified"
391
+ msgstr "Cinese semplificato"
392
+
393
+ #: inc/functions.php:424
394
+ msgid "Chinese - Traditional"
395
+ msgstr "Cinese tradizionale"
396
+
397
+ #: inc/functions.php:429
398
+ msgid "Croatian"
399
+ msgstr "Croato"
400
+
401
+ #: inc/functions.php:434
402
+ msgid "Czech"
403
+ msgstr "Ceco"
404
+
405
+ #: inc/functions.php:439
406
+ msgid "Danish"
407
+ msgstr "Danese"
408
+
409
+ #: inc/functions.php:444
410
+ msgid "Dhivehi"
411
+ msgstr "Divehi"
412
+
413
+ #: inc/functions.php:450
414
+ msgid "Dutch"
415
+ msgstr "Olandese"
416
+
417
+ #: inc/functions.php:455
418
+ msgid "English"
419
+ msgstr "Inglese"
420
+
421
+ #: inc/functions.php:460
422
+ msgid "Esperanto"
423
+ msgstr "Esperanto"
424
+
425
+ #: inc/functions.php:465
426
+ msgid "Estonian"
427
+ msgstr "Estone"
428
+
429
+ #: inc/functions.php:470
430
+ msgid "Farsi"
431
+ msgstr "Farsi"
432
+
433
+ #: inc/functions.php:475
434
+ msgid "Finnish"
435
+ msgstr "Finlandese"
436
+
437
+ #: inc/functions.php:480
438
+ msgid "French"
439
+ msgstr "Francese"
440
+
441
+ #: inc/functions.php:485
442
+ msgid "French Canadian"
443
+ msgstr "Francese (Canada)"
444
+
445
+ #: inc/functions.php:490
446
+ msgid "Galician"
447
+ msgstr "Galiziano"
448
+
449
+ #: inc/functions.php:495
450
+ msgid "German"
451
+ msgstr "Tedesco"
452
+
453
+ #: inc/functions.php:500
454
+ msgid "Georgian"
455
+ msgstr "Georgiano"
456
+
457
+ #: inc/functions.php:505
458
+ msgid "Greek"
459
+ msgstr "Greco"
460
+
461
+ #: inc/functions.php:510
462
+ msgid "Gujarati"
463
+ msgstr "Gujarati"
464
+
465
+ #: inc/functions.php:515
466
+ msgid "Haitian Creole"
467
+ msgstr "Creolo Haitiano"
468
+
469
+ #: inc/functions.php:520
470
+ msgid "Hebrew"
471
+ msgstr "Ebraico"
472
+
473
+ #: inc/functions.php:526
474
+ msgid "Hindi"
475
+ msgstr "Hindi"
476
+
477
+ #: inc/functions.php:531
478
+ msgid "Hungarian"
479
+ msgstr "Ungherese"
480
+
481
+ #: inc/functions.php:536
482
+ msgid "Icelandic"
483
+ msgstr "Islandese"
484
+
485
+ #: inc/functions.php:541
486
+ msgid "Ido"
487
+ msgstr "Ido"
488
+
489
+ #: inc/functions.php:546
490
+ msgid "Indonesian"
491
+ msgstr "Indonesiano"
492
+
493
+ #: inc/functions.php:551
494
+ msgid "Irish Gaelic"
495
+ msgstr "Irlandese"
496
+
497
+ #: inc/functions.php:556
498
+ msgid "Italian"
499
+ msgstr "Italiano"
500
+
501
+ #: inc/functions.php:561
502
+ msgid "Japanese"
503
+ msgstr "Giapponese"
504
+
505
+ #: inc/functions.php:566
506
+ msgid "Javanese"
507
+ msgstr "Giavanese"
508
+
509
+ #: inc/functions.php:571
510
+ msgid "Khmer"
511
+ msgstr "Khmer"
512
+
513
+ #: inc/functions.php:576
514
+ msgid "Korean"
515
+ msgstr "Coreano"
516
+
517
+ #: inc/functions.php:581
518
+ msgid "Kurdish"
519
+ msgstr "Curdo"
520
+
521
+ #: inc/functions.php:587
522
+ msgid "Latin"
523
+ msgstr "Latino"
524
+
525
+ #: inc/functions.php:592
526
+ msgid "Latvian"
527
+ msgstr "Lettone"
528
+
529
+ #: inc/functions.php:597
530
+ msgid "Lithuanian"
531
+ msgstr "Lituano"
532
+
533
+ #: inc/functions.php:602
534
+ msgid "Low German"
535
+ msgstr "Basso Tedesco"
536
+
537
+ #: inc/functions.php:607
538
+ msgid "Macedonian"
539
+ msgstr "Macedone"
540
+
541
+ #: inc/functions.php:612
542
+ msgid "Maltese"
543
+ msgstr "Maltese"
544
+
545
+ #: inc/functions.php:617
546
+ msgid "Mandinka"
547
+ msgstr "Mandingo"
548
+
549
+ #: inc/functions.php:622
550
+ msgid "Maori"
551
+ msgstr "Maori"
552
+
553
+ #: inc/functions.php:627
554
+ msgid "Marathi"
555
+ msgstr "Marathi"
556
+
557
+ #: inc/functions.php:632
558
+ msgid "Mongolian"
559
+ msgstr "Mongolo"
560
+
561
+ #: inc/functions.php:637
562
+ msgid "Norwegian"
563
+ msgstr "Norvegese"
564
+
565
+ #: inc/functions.php:642
566
+ msgid "Occitan"
567
+ msgstr "Occitano"
568
+
569
+ #: inc/functions.php:647
570
+ msgid "Pashto"
571
+ msgstr "Pashto"
572
+
573
+ #: inc/functions.php:653
574
+ msgid "Plautdietsch"
575
+ msgstr "Plautdietsch"
576
+
577
+ #: inc/functions.php:658
578
+ msgid "Polish"
579
+ msgstr "Polacco"
580
+
581
+ #: inc/functions.php:663
582
+ msgid "Portuguese"
583
+ msgstr "Portoghese"
584
+
585
+ #: inc/functions.php:668
586
+ msgid "Punjabi"
587
+ msgstr "Punjabi"
588
+
589
+ #: inc/functions.php:674
590
+ msgid "Romanian"
591
+ msgstr "Rumeno"
592
+
593
+ #: inc/functions.php:679
594
+ msgid "Russian"
595
+ msgstr "Russo"
596
+
597
+ #: inc/functions.php:684
598
+ msgid "Serbian"
599
+ msgstr "Serbo"
600
+
601
+ #: inc/functions.php:689
602
+ msgid "Slovak"
603
+ msgstr "Slavo"
604
+
605
+ #: inc/functions.php:694
606
+ msgid "Slovenian"
607
+ msgstr "Sloveno"
608
+
609
+ #: inc/functions.php:699
610
+ msgid "Spanish"
611
+ msgstr "Spagnolo"
612
+
613
+ #: inc/functions.php:704
614
+ msgid "Swahili"
615
+ msgstr "Swahili"
616
+
617
+ #: inc/functions.php:709
618
+ msgid "Swedish"
619
+ msgstr "Svedese"
620
+
621
+ #: inc/functions.php:714
622
+ msgid "Swiss"
623
+ msgstr "Swiss"
624
+
625
+ #: inc/functions.php:719
626
+ msgid "Tagalog"
627
+ msgstr "Tagalog"
628
+
629
+ #: inc/functions.php:724
630
+ msgid "Tatarish"
631
+ msgstr "Tatarish"
632
+
633
+ #: inc/functions.php:729
634
+ msgid "Thai"
635
+ msgstr "Thai"
636
+
637
+ #: inc/functions.php:734
638
+ msgid "Turkish"
639
+ msgstr "Turco"
640
+
641
+ #: inc/functions.php:739
642
+ msgid "Turkmen"
643
+ msgstr "Turcmeno"
644
+
645
+ #: inc/functions.php:744
646
+ msgid "Ukrainian"
647
+ msgstr "Ucraino"
648
+
649
+ #: inc/functions.php:749
650
+ msgid "Uzbek"
651
+ msgstr "Uzbeko"
652
+
653
+ #: inc/functions.php:754
654
+ msgid "Vietnamese"
655
+ msgstr "Vietnamita"
656
+
657
+ #: inc/functions.php:759
658
+ msgid "Welsh"
659
+ msgstr "Gallese"
660
+
661
+ #: inc/functions.php:764
662
+ msgid "Wolof"
663
+ msgstr "Wolof"
664
+
665
+ #: inc/functions.php:769
666
+ msgid "Yiddish - transliterated"
667
+ msgstr "Yiddish - traslitterato"
668
+
669
+ #: inc/functions.php:774
670
+ msgid "Yiddish - unicode"
671
+ msgstr "Yiddish - unicode"
languages/wunderground-lt_LT.mo CHANGED
Binary file
languages/wunderground-lt_LT.po CHANGED
@@ -4,16 +4,16 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Wunderground\n"
7
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
8
- "PO-Revision-Date: 2014-12-04 20:12+0000\n"
9
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
10
- "Language-Team: Lithuanian (Lithuania) (http://www.transifex.com/projects/p/wunderground/language/lt_LT/)\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "Language: lt_LT\n"
15
  "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
16
- "X-Generator: Poedit 1.7beta3\n"
17
  "X-Poedit-Basepath: ..\n"
18
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
19
  "X-Poedit-SearchPath-0: .\n"
@@ -115,172 +115,175 @@ msgstr "Pridėti Wunderground.com prognozę"
115
  msgid "Wunderground"
116
  msgstr "Wunderground"
117
 
118
- #: inc/class-widget.php:152
 
 
 
 
 
119
  msgid "Title"
120
  msgstr "Antraštė"
121
 
122
- #: inc/class-widget.php:153
123
  msgid "Leave empty to hide the widget title."
124
  msgstr "Palikit tuščia, kad nesimatytu valdiklio antraštės."
125
 
126
- #: inc/class-widget.php:159
127
  msgid "Location"
128
  msgstr "Vieta"
129
 
130
- #: inc/class-widget.php:160
131
  msgid "Locations will autoload, but you may also define custom locations."
132
  msgstr "Vietos prisidės automatiškai, bet galite pridėti ir savo."
133
 
134
- #: inc/class-widget.php:161
135
  msgid "Enter the name of a location."
136
  msgstr "Nurodykite vietos pavadinimą."
137
 
138
- #: inc/class-widget.php:168
139
  msgid "Location Title"
140
  msgstr "Vietos antraštė"
141
 
142
- #: inc/class-widget.php:169
143
  msgid "Change how the location is displayed in the widget search field."
144
  msgstr "Keisti kaip yra rodomos vietos valdiklių paieškų lauke."
145
 
146
- #: inc/class-widget.php:170
147
  msgid "Leave empty to use the location name."
148
  msgstr "Palikti tuščia, kad naudoti vietos pavadinimą."
149
 
150
- #: inc/class-widget.php:171
151
  msgid ""
152
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
153
  "set the Location Title as \"Denver\", which is simpler."
154
  msgstr "Pavizdys: jei vieta nustatyta kaip \"Vilnius, Lietuva\", jūs greičiausiai noresite rodyti antraštė kaip \"Vilnius\", nes taip trumpiau."
155
 
156
- #: inc/class-widget.php:180
157
  msgid "# of Days in Forecast"
158
  msgstr "# dienos prognozeje"
159
 
160
- #: inc/class-widget.php:186
161
  msgid "Include Current Conditions"
162
  msgstr "Įtraukti ir esamus orus"
163
 
164
- #: inc/class-widget.php:187
165
  msgid "Add the current conditions to the forecast."
166
  msgstr "Pridėti esamus orus į prognozę."
167
 
168
- #: inc/class-widget.php:193
169
  msgid "Include Night Forecasts"
170
  msgstr "Įtraukti naktines prognozes"
171
 
172
- #: inc/class-widget.php:194
173
  msgid "This will result in double the number of forecasts shown."
174
  msgstr "Bus rodoma dvigubai daugiau prognozių"
175
 
176
- #: inc/class-widget.php:200
177
  msgid "Icon Set"
178
  msgstr "Piktogramų rinkinys"
179
 
180
- #: inc/class-widget.php:201
181
  msgid ""
182
  "Choose the look and feel of the images that will represent the weather."
183
  msgstr "Pasirinkite paveiksliukų išvaizdą kuriais bus rodomi orai."
184
 
185
- #: inc/class-widget.php:229
186
  msgid "Widget Template"
187
  msgstr "Valdiklio šablonas"
188
 
189
- #: inc/class-widget.php:230
190
  msgid "Choose how you would like to display the forecast."
191
  msgstr "Pasirinkite kaip norite matyti prognozę."
192
 
193
- #: inc/class-widget.php:235
194
  msgid "Show in Forecast"
195
  msgstr "Rodyti prognozeje"
196
 
197
- #: inc/class-widget.php:240
198
  msgid "Search Form"
199
  msgstr "Paieškos laukas"
200
 
201
- #: inc/class-widget.php:241
202
  msgid "Allow searching weather forecasts."
203
  msgstr "Leisti ieškoti orų prognozes."
204
 
205
- #: inc/class-widget.php:244
206
  msgid "Weekday Labels"
207
  msgstr "Savaičių dienų ženklai"
208
 
209
- #: inc/class-widget.php:245
210
  msgid "Show the names of the days of the week."
211
  msgstr "Rodyti savaičių dienų pavadinimus."
212
 
213
- #: inc/class-widget.php:248
214
  msgid "Date"
215
  msgstr "Data"
216
 
217
- #: inc/class-widget.php:249
218
  msgid "Display the date numerically (\"09/14\")."
219
  msgstr "Rodyti datas numeriais (\"09/14\")."
220
 
221
- #: inc/class-widget.php:252
222
  msgid "Weather Icon"
223
  msgstr "Orų piktograma"
224
 
225
- #: inc/class-widget.php:253
226
  msgid "Icon representing the forecast conditions."
227
  msgstr "Piktograma rodanti prognozės sąlygas."
228
 
229
- #: inc/class-widget.php:256
230
  msgid "Chance of Rain"
231
  msgstr "Kritulių galimybė"
232
 
233
- #: inc/class-widget.php:257
234
  msgid "Display the percent chance of rain."
235
  msgstr "Rodyti kritulių galimybę procentais."
236
 
237
- #: inc/class-widget.php:260
238
  msgid "High & Low Temp"
239
  msgstr "Aukšta & žema temperatūra"
240
 
241
- #: inc/class-widget.php:261
242
  msgid "Show the high & low temperatures for forecast."
243
  msgstr "Rodyti aukštas & žemas temperatūtas prognozėje."
244
 
245
- #: inc/class-widget.php:264
246
  msgid "Condition Title"
247
  msgstr "Sąlygų antraštė"
248
 
249
- #: inc/class-widget.php:265
250
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
251
  msgstr "Sąlygų santrauka (\"Giedra\",\"Mažai debesuota\", t.t.)."
252
 
253
- #: inc/class-widget.php:268
254
  msgid "Forecast Text"
255
  msgstr "Prognozės tekstas"
256
 
257
- #: inc/class-widget.php:269
258
  msgid "Display a description of the forecast, normally in sentence format."
259
  msgstr "Rodyti prognozės aprašymą, paprastai būna sakinių formatu."
260
 
261
- #: inc/class-widget.php:272
262
  msgid "Weather Alerts &amp; Warnings"
263
  msgstr "Orų įspėjimai"
264
 
265
- #: inc/class-widget.php:273
266
- msgid ""
267
- "This functionality is currently not working; we are working with "
268
- "Wunderground.com to restore it."
269
- msgstr "Ši galimybė kolkas nepasiekama; mes dirbame su Wunderground.com, kad tai vėl veiktu."
270
 
271
- #: inc/class-widget.php:289
272
  msgid "Forecast Language"
273
  msgstr "Prognozės kalba"
274
 
275
- #: inc/class-widget.php:300
276
  msgid "Measurements"
277
  msgstr "Matavimo vienetai"
278
 
279
- #: inc/class-widget.php:303
280
  msgid "Fahrenheit &amp; Inches"
281
  msgstr "Farenheitai ir inchai"
282
 
283
- #: inc/class-widget.php:306
284
  msgid "Celsius &amp; Meters"
285
  msgstr "Celzijus ir metrai"
286
 
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Wunderground\n"
7
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
8
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
9
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
10
+ "Language-Team: Lithuanian (Lithuania) (http://www.transifex.com/katzwebservices/wunderground/language/lt_LT/)\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "Language: lt_LT\n"
15
  "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
16
+ "X-Generator: Poedit 1.7.1\n"
17
  "X-Poedit-Basepath: ..\n"
18
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
19
  "X-Poedit-SearchPath-0: .\n"
115
  msgid "Wunderground"
116
  msgstr "Wunderground"
117
 
118
+ #: inc/class-widget.php:132
119
+ #, php-format
120
+ msgid "There was an error fetching the forecast: %s"
121
+ msgstr ""
122
+
123
+ #: inc/class-widget.php:169
124
  msgid "Title"
125
  msgstr "Antraštė"
126
 
127
+ #: inc/class-widget.php:170
128
  msgid "Leave empty to hide the widget title."
129
  msgstr "Palikit tuščia, kad nesimatytu valdiklio antraštės."
130
 
131
+ #: inc/class-widget.php:176
132
  msgid "Location"
133
  msgstr "Vieta"
134
 
135
+ #: inc/class-widget.php:177
136
  msgid "Locations will autoload, but you may also define custom locations."
137
  msgstr "Vietos prisidės automatiškai, bet galite pridėti ir savo."
138
 
139
+ #: inc/class-widget.php:178
140
  msgid "Enter the name of a location."
141
  msgstr "Nurodykite vietos pavadinimą."
142
 
143
+ #: inc/class-widget.php:185
144
  msgid "Location Title"
145
  msgstr "Vietos antraštė"
146
 
147
+ #: inc/class-widget.php:186
148
  msgid "Change how the location is displayed in the widget search field."
149
  msgstr "Keisti kaip yra rodomos vietos valdiklių paieškų lauke."
150
 
151
+ #: inc/class-widget.php:187
152
  msgid "Leave empty to use the location name."
153
  msgstr "Palikti tuščia, kad naudoti vietos pavadinimą."
154
 
155
+ #: inc/class-widget.php:188
156
  msgid ""
157
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
158
  "set the Location Title as \"Denver\", which is simpler."
159
  msgstr "Pavizdys: jei vieta nustatyta kaip \"Vilnius, Lietuva\", jūs greičiausiai noresite rodyti antraštė kaip \"Vilnius\", nes taip trumpiau."
160
 
161
+ #: inc/class-widget.php:197
162
  msgid "# of Days in Forecast"
163
  msgstr "# dienos prognozeje"
164
 
165
+ #: inc/class-widget.php:203
166
  msgid "Include Current Conditions"
167
  msgstr "Įtraukti ir esamus orus"
168
 
169
+ #: inc/class-widget.php:204
170
  msgid "Add the current conditions to the forecast."
171
  msgstr "Pridėti esamus orus į prognozę."
172
 
173
+ #: inc/class-widget.php:210
174
  msgid "Include Night Forecasts"
175
  msgstr "Įtraukti naktines prognozes"
176
 
177
+ #: inc/class-widget.php:211
178
  msgid "This will result in double the number of forecasts shown."
179
  msgstr "Bus rodoma dvigubai daugiau prognozių"
180
 
181
+ #: inc/class-widget.php:217
182
  msgid "Icon Set"
183
  msgstr "Piktogramų rinkinys"
184
 
185
+ #: inc/class-widget.php:218
186
  msgid ""
187
  "Choose the look and feel of the images that will represent the weather."
188
  msgstr "Pasirinkite paveiksliukų išvaizdą kuriais bus rodomi orai."
189
 
190
+ #: inc/class-widget.php:246
191
  msgid "Widget Template"
192
  msgstr "Valdiklio šablonas"
193
 
194
+ #: inc/class-widget.php:247
195
  msgid "Choose how you would like to display the forecast."
196
  msgstr "Pasirinkite kaip norite matyti prognozę."
197
 
198
+ #: inc/class-widget.php:252
199
  msgid "Show in Forecast"
200
  msgstr "Rodyti prognozeje"
201
 
202
+ #: inc/class-widget.php:257
203
  msgid "Search Form"
204
  msgstr "Paieškos laukas"
205
 
206
+ #: inc/class-widget.php:258
207
  msgid "Allow searching weather forecasts."
208
  msgstr "Leisti ieškoti orų prognozes."
209
 
210
+ #: inc/class-widget.php:261
211
  msgid "Weekday Labels"
212
  msgstr "Savaičių dienų ženklai"
213
 
214
+ #: inc/class-widget.php:262
215
  msgid "Show the names of the days of the week."
216
  msgstr "Rodyti savaičių dienų pavadinimus."
217
 
218
+ #: inc/class-widget.php:265
219
  msgid "Date"
220
  msgstr "Data"
221
 
222
+ #: inc/class-widget.php:266
223
  msgid "Display the date numerically (\"09/14\")."
224
  msgstr "Rodyti datas numeriais (\"09/14\")."
225
 
226
+ #: inc/class-widget.php:269
227
  msgid "Weather Icon"
228
  msgstr "Orų piktograma"
229
 
230
+ #: inc/class-widget.php:270
231
  msgid "Icon representing the forecast conditions."
232
  msgstr "Piktograma rodanti prognozės sąlygas."
233
 
234
+ #: inc/class-widget.php:273
235
  msgid "Chance of Rain"
236
  msgstr "Kritulių galimybė"
237
 
238
+ #: inc/class-widget.php:274
239
  msgid "Display the percent chance of rain."
240
  msgstr "Rodyti kritulių galimybę procentais."
241
 
242
+ #: inc/class-widget.php:277
243
  msgid "High & Low Temp"
244
  msgstr "Aukšta & žema temperatūra"
245
 
246
+ #: inc/class-widget.php:278
247
  msgid "Show the high & low temperatures for forecast."
248
  msgstr "Rodyti aukštas & žemas temperatūtas prognozėje."
249
 
250
+ #: inc/class-widget.php:281
251
  msgid "Condition Title"
252
  msgstr "Sąlygų antraštė"
253
 
254
+ #: inc/class-widget.php:282
255
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
256
  msgstr "Sąlygų santrauka (\"Giedra\",\"Mažai debesuota\", t.t.)."
257
 
258
+ #: inc/class-widget.php:285
259
  msgid "Forecast Text"
260
  msgstr "Prognozės tekstas"
261
 
262
+ #: inc/class-widget.php:286
263
  msgid "Display a description of the forecast, normally in sentence format."
264
  msgstr "Rodyti prognozės aprašymą, paprastai būna sakinių formatu."
265
 
266
+ #: inc/class-widget.php:289
267
  msgid "Weather Alerts &amp; Warnings"
268
  msgstr "Orų įspėjimai"
269
 
270
+ #: inc/class-widget.php:290
271
+ msgid "Display Severe Weather alerts and warnings."
272
+ msgstr ""
 
 
273
 
274
+ #: inc/class-widget.php:306
275
  msgid "Forecast Language"
276
  msgstr "Prognozės kalba"
277
 
278
+ #: inc/class-widget.php:317
279
  msgid "Measurements"
280
  msgstr "Matavimo vienetai"
281
 
282
+ #: inc/class-widget.php:320
283
  msgid "Fahrenheit &amp; Inches"
284
  msgstr "Farenheitai ir inchai"
285
 
286
+ #: inc/class-widget.php:323
287
  msgid "Celsius &amp; Meters"
288
  msgstr "Celzijus ir metrai"
289
 
languages/wunderground-nb_NO.mo CHANGED
Binary file
languages/wunderground-nb_NO.po CHANGED
@@ -3,16 +3,16 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
7
- "PO-Revision-Date: 2014-06-06 15:48+0000\n"
8
- "Last-Translator: Katz Web Services, Inc. <support@katz.co>\n"
9
- "Language-Team: Norwegian Bokmål (Norway) (http://www.transifex.com/projects/p/wunderground/language/nb_NO/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: nb_NO\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
- "X-Generator: Poedit 1.7beta3\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
@@ -114,172 +114,175 @@ msgstr ""
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
- #: inc/class-widget.php:152
 
 
 
 
 
118
  msgid "Title"
119
  msgstr ""
120
 
121
- #: inc/class-widget.php:153
122
  msgid "Leave empty to hide the widget title."
123
  msgstr ""
124
 
125
- #: inc/class-widget.php:159
126
  msgid "Location"
127
  msgstr ""
128
 
129
- #: inc/class-widget.php:160
130
  msgid "Locations will autoload, but you may also define custom locations."
131
  msgstr ""
132
 
133
- #: inc/class-widget.php:161
134
  msgid "Enter the name of a location."
135
  msgstr ""
136
 
137
- #: inc/class-widget.php:168
138
  msgid "Location Title"
139
  msgstr ""
140
 
141
- #: inc/class-widget.php:169
142
  msgid "Change how the location is displayed in the widget search field."
143
  msgstr ""
144
 
145
- #: inc/class-widget.php:170
146
  msgid "Leave empty to use the location name."
147
  msgstr ""
148
 
149
- #: inc/class-widget.php:171
150
  msgid ""
151
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
152
  "set the Location Title as \"Denver\", which is simpler."
153
  msgstr ""
154
 
155
- #: inc/class-widget.php:180
156
  msgid "# of Days in Forecast"
157
  msgstr ""
158
 
159
- #: inc/class-widget.php:186
160
  msgid "Include Current Conditions"
161
  msgstr ""
162
 
163
- #: inc/class-widget.php:187
164
  msgid "Add the current conditions to the forecast."
165
  msgstr ""
166
 
167
- #: inc/class-widget.php:193
168
  msgid "Include Night Forecasts"
169
  msgstr ""
170
 
171
- #: inc/class-widget.php:194
172
  msgid "This will result in double the number of forecasts shown."
173
  msgstr ""
174
 
175
- #: inc/class-widget.php:200
176
  msgid "Icon Set"
177
  msgstr ""
178
 
179
- #: inc/class-widget.php:201
180
  msgid ""
181
  "Choose the look and feel of the images that will represent the weather."
182
  msgstr ""
183
 
184
- #: inc/class-widget.php:229
185
  msgid "Widget Template"
186
  msgstr ""
187
 
188
- #: inc/class-widget.php:230
189
  msgid "Choose how you would like to display the forecast."
190
  msgstr ""
191
 
192
- #: inc/class-widget.php:235
193
  msgid "Show in Forecast"
194
  msgstr ""
195
 
196
- #: inc/class-widget.php:240
197
  msgid "Search Form"
198
  msgstr ""
199
 
200
- #: inc/class-widget.php:241
201
  msgid "Allow searching weather forecasts."
202
  msgstr ""
203
 
204
- #: inc/class-widget.php:244
205
  msgid "Weekday Labels"
206
  msgstr ""
207
 
208
- #: inc/class-widget.php:245
209
  msgid "Show the names of the days of the week."
210
  msgstr ""
211
 
212
- #: inc/class-widget.php:248
213
  msgid "Date"
214
  msgstr ""
215
 
216
- #: inc/class-widget.php:249
217
  msgid "Display the date numerically (\"09/14\")."
218
  msgstr ""
219
 
220
- #: inc/class-widget.php:252
221
  msgid "Weather Icon"
222
  msgstr ""
223
 
224
- #: inc/class-widget.php:253
225
  msgid "Icon representing the forecast conditions."
226
  msgstr ""
227
 
228
- #: inc/class-widget.php:256
229
  msgid "Chance of Rain"
230
  msgstr ""
231
 
232
- #: inc/class-widget.php:257
233
  msgid "Display the percent chance of rain."
234
  msgstr ""
235
 
236
- #: inc/class-widget.php:260
237
  msgid "High & Low Temp"
238
  msgstr ""
239
 
240
- #: inc/class-widget.php:261
241
  msgid "Show the high & low temperatures for forecast."
242
  msgstr ""
243
 
244
- #: inc/class-widget.php:264
245
  msgid "Condition Title"
246
  msgstr ""
247
 
248
- #: inc/class-widget.php:265
249
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
250
  msgstr ""
251
 
252
- #: inc/class-widget.php:268
253
  msgid "Forecast Text"
254
  msgstr ""
255
 
256
- #: inc/class-widget.php:269
257
  msgid "Display a description of the forecast, normally in sentence format."
258
  msgstr ""
259
 
260
- #: inc/class-widget.php:272
261
  msgid "Weather Alerts &amp; Warnings"
262
  msgstr ""
263
 
264
- #: inc/class-widget.php:273
265
- msgid ""
266
- "This functionality is currently not working; we are working with "
267
- "Wunderground.com to restore it."
268
  msgstr ""
269
 
270
- #: inc/class-widget.php:289
271
  msgid "Forecast Language"
272
  msgstr ""
273
 
274
- #: inc/class-widget.php:300
275
  msgid "Measurements"
276
  msgstr ""
277
 
278
- #: inc/class-widget.php:303
279
  msgid "Fahrenheit &amp; Inches"
280
  msgstr ""
281
 
282
- #: inc/class-widget.php:306
283
  msgid "Celsius &amp; Meters"
284
  msgstr ""
285
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
+ "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: Norwegian Bokmål (Norway) (http://www.transifex.com/katzwebservices/wunderground/language/nb_NO/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: nb_NO\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
  msgid "Title"
124
  msgstr ""
125
 
126
+ #: inc/class-widget.php:170
127
  msgid "Leave empty to hide the widget title."
128
  msgstr ""
129
 
130
+ #: inc/class-widget.php:176
131
  msgid "Location"
132
  msgstr ""
133
 
134
+ #: inc/class-widget.php:177
135
  msgid "Locations will autoload, but you may also define custom locations."
136
  msgstr ""
137
 
138
+ #: inc/class-widget.php:178
139
  msgid "Enter the name of a location."
140
  msgstr ""
141
 
142
+ #: inc/class-widget.php:185
143
  msgid "Location Title"
144
  msgstr ""
145
 
146
+ #: inc/class-widget.php:186
147
  msgid "Change how the location is displayed in the widget search field."
148
  msgstr ""
149
 
150
+ #: inc/class-widget.php:187
151
  msgid "Leave empty to use the location name."
152
  msgstr ""
153
 
154
+ #: inc/class-widget.php:188
155
  msgid ""
156
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
  "set the Location Title as \"Denver\", which is simpler."
158
  msgstr ""
159
 
160
+ #: inc/class-widget.php:197
161
  msgid "# of Days in Forecast"
162
  msgstr ""
163
 
164
+ #: inc/class-widget.php:203
165
  msgid "Include Current Conditions"
166
  msgstr ""
167
 
168
+ #: inc/class-widget.php:204
169
  msgid "Add the current conditions to the forecast."
170
  msgstr ""
171
 
172
+ #: inc/class-widget.php:210
173
  msgid "Include Night Forecasts"
174
  msgstr ""
175
 
176
+ #: inc/class-widget.php:211
177
  msgid "This will result in double the number of forecasts shown."
178
  msgstr ""
179
 
180
+ #: inc/class-widget.php:217
181
  msgid "Icon Set"
182
  msgstr ""
183
 
184
+ #: inc/class-widget.php:218
185
  msgid ""
186
  "Choose the look and feel of the images that will represent the weather."
187
  msgstr ""
188
 
189
+ #: inc/class-widget.php:246
190
  msgid "Widget Template"
191
  msgstr ""
192
 
193
+ #: inc/class-widget.php:247
194
  msgid "Choose how you would like to display the forecast."
195
  msgstr ""
196
 
197
+ #: inc/class-widget.php:252
198
  msgid "Show in Forecast"
199
  msgstr ""
200
 
201
+ #: inc/class-widget.php:257
202
  msgid "Search Form"
203
  msgstr ""
204
 
205
+ #: inc/class-widget.php:258
206
  msgid "Allow searching weather forecasts."
207
  msgstr ""
208
 
209
+ #: inc/class-widget.php:261
210
  msgid "Weekday Labels"
211
  msgstr ""
212
 
213
+ #: inc/class-widget.php:262
214
  msgid "Show the names of the days of the week."
215
  msgstr ""
216
 
217
+ #: inc/class-widget.php:265
218
  msgid "Date"
219
  msgstr ""
220
 
221
+ #: inc/class-widget.php:266
222
  msgid "Display the date numerically (\"09/14\")."
223
  msgstr ""
224
 
225
+ #: inc/class-widget.php:269
226
  msgid "Weather Icon"
227
  msgstr ""
228
 
229
+ #: inc/class-widget.php:270
230
  msgid "Icon representing the forecast conditions."
231
  msgstr ""
232
 
233
+ #: inc/class-widget.php:273
234
  msgid "Chance of Rain"
235
  msgstr ""
236
 
237
+ #: inc/class-widget.php:274
238
  msgid "Display the percent chance of rain."
239
  msgstr ""
240
 
241
+ #: inc/class-widget.php:277
242
  msgid "High & Low Temp"
243
  msgstr ""
244
 
245
+ #: inc/class-widget.php:278
246
  msgid "Show the high & low temperatures for forecast."
247
  msgstr ""
248
 
249
+ #: inc/class-widget.php:281
250
  msgid "Condition Title"
251
  msgstr ""
252
 
253
+ #: inc/class-widget.php:282
254
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
  msgstr ""
256
 
257
+ #: inc/class-widget.php:285
258
  msgid "Forecast Text"
259
  msgstr ""
260
 
261
+ #: inc/class-widget.php:286
262
  msgid "Display a description of the forecast, normally in sentence format."
263
  msgstr ""
264
 
265
+ #: inc/class-widget.php:289
266
  msgid "Weather Alerts &amp; Warnings"
267
  msgstr ""
268
 
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
 
 
271
  msgstr ""
272
 
273
+ #: inc/class-widget.php:306
274
  msgid "Forecast Language"
275
  msgstr ""
276
 
277
+ #: inc/class-widget.php:317
278
  msgid "Measurements"
279
  msgstr ""
280
 
281
+ #: inc/class-widget.php:320
282
  msgid "Fahrenheit &amp; Inches"
283
  msgstr ""
284
 
285
+ #: inc/class-widget.php:323
286
  msgid "Celsius &amp; Meters"
287
  msgstr ""
288
 
languages/wunderground-pl.mo ADDED
Binary file
languages/wunderground-pl.po ADDED
@@ -0,0 +1,663 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # Translators:
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
+ "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: Polish (http://www.transifex.com/katzwebservices/wunderground/language/pl/)\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Language: pl\n"
14
+ "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
+ "X-Poedit-Basepath: ..\n"
17
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
+ "X-Poedit-SearchPath-0: .\n"
19
+ "X-Poedit-SourceCharset: UTF-8\n"
20
+
21
+ #: inc/class-template.php:67
22
+ #, php-format
23
+ msgid "Statement as of %s"
24
+ msgstr ""
25
+
26
+ #: inc/class-template.php:68
27
+ msgid "The location could not be found."
28
+ msgstr ""
29
+
30
+ #: inc/class-template.php:69
31
+ #, php-format
32
+ msgid "%s%%"
33
+ msgstr ""
34
+
35
+ #: inc/class-template.php:70
36
+ #, php-format
37
+ msgid "%s%% Chance of Precipitation"
38
+ msgstr ""
39
+
40
+ #: inc/class-template.php:71
41
+ msgid "Currently"
42
+ msgstr ""
43
+
44
+ #: inc/class-template.php:72
45
+ #, php-format
46
+ msgid "High %d&deg;"
47
+ msgstr ""
48
+
49
+ #: inc/class-template.php:73
50
+ #, php-format
51
+ msgid "Low %d&deg;"
52
+ msgstr ""
53
+
54
+ #: inc/class-template.php:74
55
+ #, php-format
56
+ msgid "%d&deg;"
57
+ msgstr ""
58
+
59
+ #: inc/class-template.php:75
60
+ #, php-format
61
+ msgid "View the %s forecast on Wunderground.com"
62
+ msgstr ""
63
+
64
+ #: inc/class-template.php:76
65
+ msgctxt "Weather alert issued date/time"
66
+ msgid "Issued:"
67
+ msgstr ""
68
+
69
+ #: inc/class-template.php:77
70
+ msgctxt "Weather alert expires date/time"
71
+ msgid "Expires:"
72
+ msgstr ""
73
+
74
+ #: inc/class-template.php:149
75
+ msgid "Current Conditions"
76
+ msgstr ""
77
+
78
+ #: inc/class-template.php:150
79
+ msgid "Simple display of the current conditions."
80
+ msgstr ""
81
+
82
+ #: inc/class-template.php:155
83
+ msgid "Grid Forecast"
84
+ msgstr ""
85
+
86
+ #: inc/class-template.php:156
87
+ msgid "Scales to any screen size."
88
+ msgstr ""
89
+
90
+ #: inc/class-template.php:161
91
+ msgid "Details Table"
92
+ msgstr ""
93
+
94
+ #: inc/class-template.php:162
95
+ msgid ""
96
+ "Display the forecast in a table with rows. Great for in-depth forecast "
97
+ "display."
98
+ msgstr ""
99
+
100
+ #: inc/class-template.php:167
101
+ msgid "Horizontal Table"
102
+ msgstr ""
103
+
104
+ #: inc/class-template.php:168
105
+ msgid ""
106
+ "Display the forecast in a table with columns. Great for forecast summaries."
107
+ msgstr ""
108
+
109
+ #: inc/class-widget.php:43
110
+ msgid "Add a Wunderground.com forecast"
111
+ msgstr ""
112
+
113
+ #: inc/class-widget.php:48 inc/functions.php:176
114
+ msgid "Wunderground"
115
+ msgstr ""
116
+
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
+ msgid "Title"
124
+ msgstr ""
125
+
126
+ #: inc/class-widget.php:170
127
+ msgid "Leave empty to hide the widget title."
128
+ msgstr ""
129
+
130
+ #: inc/class-widget.php:176
131
+ msgid "Location"
132
+ msgstr ""
133
+
134
+ #: inc/class-widget.php:177
135
+ msgid "Locations will autoload, but you may also define custom locations."
136
+ msgstr ""
137
+
138
+ #: inc/class-widget.php:178
139
+ msgid "Enter the name of a location."
140
+ msgstr ""
141
+
142
+ #: inc/class-widget.php:185
143
+ msgid "Location Title"
144
+ msgstr ""
145
+
146
+ #: inc/class-widget.php:186
147
+ msgid "Change how the location is displayed in the widget search field."
148
+ msgstr ""
149
+
150
+ #: inc/class-widget.php:187
151
+ msgid "Leave empty to use the location name."
152
+ msgstr ""
153
+
154
+ #: inc/class-widget.php:188
155
+ msgid ""
156
+ "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
+ "set the Location Title as \"Denver\", which is simpler."
158
+ msgstr ""
159
+
160
+ #: inc/class-widget.php:197
161
+ msgid "# of Days in Forecast"
162
+ msgstr ""
163
+
164
+ #: inc/class-widget.php:203
165
+ msgid "Include Current Conditions"
166
+ msgstr ""
167
+
168
+ #: inc/class-widget.php:204
169
+ msgid "Add the current conditions to the forecast."
170
+ msgstr ""
171
+
172
+ #: inc/class-widget.php:210
173
+ msgid "Include Night Forecasts"
174
+ msgstr ""
175
+
176
+ #: inc/class-widget.php:211
177
+ msgid "This will result in double the number of forecasts shown."
178
+ msgstr ""
179
+
180
+ #: inc/class-widget.php:217
181
+ msgid "Icon Set"
182
+ msgstr ""
183
+
184
+ #: inc/class-widget.php:218
185
+ msgid ""
186
+ "Choose the look and feel of the images that will represent the weather."
187
+ msgstr ""
188
+
189
+ #: inc/class-widget.php:246
190
+ msgid "Widget Template"
191
+ msgstr ""
192
+
193
+ #: inc/class-widget.php:247
194
+ msgid "Choose how you would like to display the forecast."
195
+ msgstr ""
196
+
197
+ #: inc/class-widget.php:252
198
+ msgid "Show in Forecast"
199
+ msgstr ""
200
+
201
+ #: inc/class-widget.php:257
202
+ msgid "Search Form"
203
+ msgstr ""
204
+
205
+ #: inc/class-widget.php:258
206
+ msgid "Allow searching weather forecasts."
207
+ msgstr ""
208
+
209
+ #: inc/class-widget.php:261
210
+ msgid "Weekday Labels"
211
+ msgstr ""
212
+
213
+ #: inc/class-widget.php:262
214
+ msgid "Show the names of the days of the week."
215
+ msgstr ""
216
+
217
+ #: inc/class-widget.php:265
218
+ msgid "Date"
219
+ msgstr ""
220
+
221
+ #: inc/class-widget.php:266
222
+ msgid "Display the date numerically (\"09/14\")."
223
+ msgstr ""
224
+
225
+ #: inc/class-widget.php:269
226
+ msgid "Weather Icon"
227
+ msgstr ""
228
+
229
+ #: inc/class-widget.php:270
230
+ msgid "Icon representing the forecast conditions."
231
+ msgstr ""
232
+
233
+ #: inc/class-widget.php:273
234
+ msgid "Chance of Rain"
235
+ msgstr ""
236
+
237
+ #: inc/class-widget.php:274
238
+ msgid "Display the percent chance of rain."
239
+ msgstr ""
240
+
241
+ #: inc/class-widget.php:277
242
+ msgid "High & Low Temp"
243
+ msgstr ""
244
+
245
+ #: inc/class-widget.php:278
246
+ msgid "Show the high & low temperatures for forecast."
247
+ msgstr ""
248
+
249
+ #: inc/class-widget.php:281
250
+ msgid "Condition Title"
251
+ msgstr ""
252
+
253
+ #: inc/class-widget.php:282
254
+ msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
+ msgstr ""
256
+
257
+ #: inc/class-widget.php:285
258
+ msgid "Forecast Text"
259
+ msgstr ""
260
+
261
+ #: inc/class-widget.php:286
262
+ msgid "Display a description of the forecast, normally in sentence format."
263
+ msgstr ""
264
+
265
+ #: inc/class-widget.php:289
266
+ msgid "Weather Alerts &amp; Warnings"
267
+ msgstr ""
268
+
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
271
+ msgstr ""
272
+
273
+ #: inc/class-widget.php:306
274
+ msgid "Forecast Language"
275
+ msgstr ""
276
+
277
+ #: inc/class-widget.php:317
278
+ msgid "Measurements"
279
+ msgstr ""
280
+
281
+ #: inc/class-widget.php:320
282
+ msgid "Fahrenheit &amp; Inches"
283
+ msgstr ""
284
+
285
+ #: inc/class-widget.php:323
286
+ msgid "Celsius &amp; Meters"
287
+ msgstr ""
288
+
289
+ #: inc/functions.php:44
290
+ msgid "Weather Forecast"
291
+ msgstr ""
292
+
293
+ #: inc/functions.php:161 inc/functions.php:178
294
+ msgid "Incredible"
295
+ msgstr ""
296
+
297
+ #: inc/functions.php:162 inc/functions.php:177
298
+ msgid "Elemental"
299
+ msgstr ""
300
+
301
+ #: inc/functions.php:163 inc/functions.php:179
302
+ msgid "Helen"
303
+ msgstr ""
304
+
305
+ #: inc/functions.php:164 inc/functions.php:181
306
+ msgid "Default"
307
+ msgstr ""
308
+
309
+ #: inc/functions.php:165 inc/functions.php:182
310
+ msgid "Smiley"
311
+ msgstr ""
312
+
313
+ #: inc/functions.php:166 inc/functions.php:183
314
+ msgid "Generic"
315
+ msgstr ""
316
+
317
+ #: inc/functions.php:167 inc/functions.php:184
318
+ msgid "Old School"
319
+ msgstr ""
320
+
321
+ #: inc/functions.php:168 inc/functions.php:185
322
+ msgid "Cartoon"
323
+ msgstr ""
324
+
325
+ #: inc/functions.php:169 inc/functions.php:186
326
+ msgid "Mobile"
327
+ msgstr ""
328
+
329
+ #: inc/functions.php:170 inc/functions.php:187
330
+ msgid "Simple"
331
+ msgstr ""
332
+
333
+ #: inc/functions.php:171 inc/functions.php:188
334
+ msgid "Contemporary"
335
+ msgstr ""
336
+
337
+ #: inc/functions.php:363
338
+ msgid "Afrikaans"
339
+ msgstr ""
340
+
341
+ #: inc/functions.php:368
342
+ msgid "Albanian"
343
+ msgstr ""
344
+
345
+ #: inc/functions.php:373
346
+ msgid "Arabic"
347
+ msgstr ""
348
+
349
+ #: inc/functions.php:379
350
+ msgid "Armenian"
351
+ msgstr ""
352
+
353
+ #: inc/functions.php:384
354
+ msgid "Azerbaijani"
355
+ msgstr ""
356
+
357
+ #: inc/functions.php:389
358
+ msgid "Basque"
359
+ msgstr ""
360
+
361
+ #: inc/functions.php:394
362
+ msgid "Belarusian"
363
+ msgstr ""
364
+
365
+ #: inc/functions.php:399
366
+ msgid "Bulgarian"
367
+ msgstr ""
368
+
369
+ #: inc/functions.php:404
370
+ msgid "British English"
371
+ msgstr ""
372
+
373
+ #: inc/functions.php:409
374
+ msgid "Burmese"
375
+ msgstr ""
376
+
377
+ #: inc/functions.php:414
378
+ msgid "Catalan"
379
+ msgstr ""
380
+
381
+ #: inc/functions.php:419
382
+ msgid "Chinese - Simplified"
383
+ msgstr ""
384
+
385
+ #: inc/functions.php:424
386
+ msgid "Chinese - Traditional"
387
+ msgstr ""
388
+
389
+ #: inc/functions.php:429
390
+ msgid "Croatian"
391
+ msgstr ""
392
+
393
+ #: inc/functions.php:434
394
+ msgid "Czech"
395
+ msgstr ""
396
+
397
+ #: inc/functions.php:439
398
+ msgid "Danish"
399
+ msgstr ""
400
+
401
+ #: inc/functions.php:444
402
+ msgid "Dhivehi"
403
+ msgstr ""
404
+
405
+ #: inc/functions.php:450
406
+ msgid "Dutch"
407
+ msgstr ""
408
+
409
+ #: inc/functions.php:455
410
+ msgid "English"
411
+ msgstr ""
412
+
413
+ #: inc/functions.php:460
414
+ msgid "Esperanto"
415
+ msgstr ""
416
+
417
+ #: inc/functions.php:465
418
+ msgid "Estonian"
419
+ msgstr ""
420
+
421
+ #: inc/functions.php:470
422
+ msgid "Farsi"
423
+ msgstr ""
424
+
425
+ #: inc/functions.php:475
426
+ msgid "Finnish"
427
+ msgstr ""
428
+
429
+ #: inc/functions.php:480
430
+ msgid "French"
431
+ msgstr ""
432
+
433
+ #: inc/functions.php:485
434
+ msgid "French Canadian"
435
+ msgstr ""
436
+
437
+ #: inc/functions.php:490
438
+ msgid "Galician"
439
+ msgstr ""
440
+
441
+ #: inc/functions.php:495
442
+ msgid "German"
443
+ msgstr ""
444
+
445
+ #: inc/functions.php:500
446
+ msgid "Georgian"
447
+ msgstr ""
448
+
449
+ #: inc/functions.php:505
450
+ msgid "Greek"
451
+ msgstr ""
452
+
453
+ #: inc/functions.php:510
454
+ msgid "Gujarati"
455
+ msgstr ""
456
+
457
+ #: inc/functions.php:515
458
+ msgid "Haitian Creole"
459
+ msgstr ""
460
+
461
+ #: inc/functions.php:520
462
+ msgid "Hebrew"
463
+ msgstr ""
464
+
465
+ #: inc/functions.php:526
466
+ msgid "Hindi"
467
+ msgstr ""
468
+
469
+ #: inc/functions.php:531
470
+ msgid "Hungarian"
471
+ msgstr ""
472
+
473
+ #: inc/functions.php:536
474
+ msgid "Icelandic"
475
+ msgstr ""
476
+
477
+ #: inc/functions.php:541
478
+ msgid "Ido"
479
+ msgstr ""
480
+
481
+ #: inc/functions.php:546
482
+ msgid "Indonesian"
483
+ msgstr ""
484
+
485
+ #: inc/functions.php:551
486
+ msgid "Irish Gaelic"
487
+ msgstr ""
488
+
489
+ #: inc/functions.php:556
490
+ msgid "Italian"
491
+ msgstr ""
492
+
493
+ #: inc/functions.php:561
494
+ msgid "Japanese"
495
+ msgstr ""
496
+
497
+ #: inc/functions.php:566
498
+ msgid "Javanese"
499
+ msgstr ""
500
+
501
+ #: inc/functions.php:571
502
+ msgid "Khmer"
503
+ msgstr ""
504
+
505
+ #: inc/functions.php:576
506
+ msgid "Korean"
507
+ msgstr ""
508
+
509
+ #: inc/functions.php:581
510
+ msgid "Kurdish"
511
+ msgstr ""
512
+
513
+ #: inc/functions.php:587
514
+ msgid "Latin"
515
+ msgstr ""
516
+
517
+ #: inc/functions.php:592
518
+ msgid "Latvian"
519
+ msgstr ""
520
+
521
+ #: inc/functions.php:597
522
+ msgid "Lithuanian"
523
+ msgstr ""
524
+
525
+ #: inc/functions.php:602
526
+ msgid "Low German"
527
+ msgstr ""
528
+
529
+ #: inc/functions.php:607
530
+ msgid "Macedonian"
531
+ msgstr ""
532
+
533
+ #: inc/functions.php:612
534
+ msgid "Maltese"
535
+ msgstr ""
536
+
537
+ #: inc/functions.php:617
538
+ msgid "Mandinka"
539
+ msgstr ""
540
+
541
+ #: inc/functions.php:622
542
+ msgid "Maori"
543
+ msgstr ""
544
+
545
+ #: inc/functions.php:627
546
+ msgid "Marathi"
547
+ msgstr ""
548
+
549
+ #: inc/functions.php:632
550
+ msgid "Mongolian"
551
+ msgstr ""
552
+
553
+ #: inc/functions.php:637
554
+ msgid "Norwegian"
555
+ msgstr ""
556
+
557
+ #: inc/functions.php:642
558
+ msgid "Occitan"
559
+ msgstr ""
560
+
561
+ #: inc/functions.php:647
562
+ msgid "Pashto"
563
+ msgstr ""
564
+
565
+ #: inc/functions.php:653
566
+ msgid "Plautdietsch"
567
+ msgstr ""
568
+
569
+ #: inc/functions.php:658
570
+ msgid "Polish"
571
+ msgstr ""
572
+
573
+ #: inc/functions.php:663
574
+ msgid "Portuguese"
575
+ msgstr ""
576
+
577
+ #: inc/functions.php:668
578
+ msgid "Punjabi"
579
+ msgstr ""
580
+
581
+ #: inc/functions.php:674
582
+ msgid "Romanian"
583
+ msgstr ""
584
+
585
+ #: inc/functions.php:679
586
+ msgid "Russian"
587
+ msgstr ""
588
+
589
+ #: inc/functions.php:684
590
+ msgid "Serbian"
591
+ msgstr ""
592
+
593
+ #: inc/functions.php:689
594
+ msgid "Slovak"
595
+ msgstr ""
596
+
597
+ #: inc/functions.php:694
598
+ msgid "Slovenian"
599
+ msgstr ""
600
+
601
+ #: inc/functions.php:699
602
+ msgid "Spanish"
603
+ msgstr ""
604
+
605
+ #: inc/functions.php:704
606
+ msgid "Swahili"
607
+ msgstr ""
608
+
609
+ #: inc/functions.php:709
610
+ msgid "Swedish"
611
+ msgstr ""
612
+
613
+ #: inc/functions.php:714
614
+ msgid "Swiss"
615
+ msgstr ""
616
+
617
+ #: inc/functions.php:719
618
+ msgid "Tagalog"
619
+ msgstr ""
620
+
621
+ #: inc/functions.php:724
622
+ msgid "Tatarish"
623
+ msgstr ""
624
+
625
+ #: inc/functions.php:729
626
+ msgid "Thai"
627
+ msgstr ""
628
+
629
+ #: inc/functions.php:734
630
+ msgid "Turkish"
631
+ msgstr ""
632
+
633
+ #: inc/functions.php:739
634
+ msgid "Turkmen"
635
+ msgstr ""
636
+
637
+ #: inc/functions.php:744
638
+ msgid "Ukrainian"
639
+ msgstr ""
640
+
641
+ #: inc/functions.php:749
642
+ msgid "Uzbek"
643
+ msgstr ""
644
+
645
+ #: inc/functions.php:754
646
+ msgid "Vietnamese"
647
+ msgstr ""
648
+
649
+ #: inc/functions.php:759
650
+ msgid "Welsh"
651
+ msgstr ""
652
+
653
+ #: inc/functions.php:764
654
+ msgid "Wolof"
655
+ msgstr ""
656
+
657
+ #: inc/functions.php:769
658
+ msgid "Yiddish - transliterated"
659
+ msgstr ""
660
+
661
+ #: inc/functions.php:774
662
+ msgid "Yiddish - unicode"
663
+ msgstr ""
languages/wunderground-pl_PL.mo CHANGED
Binary file
languages/wunderground-pl_PL.po CHANGED
@@ -1,18 +1,19 @@
1
  #
2
  # Translators:
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
7
- "PO-Revision-Date: 2014-06-06 15:48+0000\n"
8
- "Last-Translator: Katz Web Services, Inc. <support@katz.co>\n"
9
- "Language-Team: Polish (Poland) (http://www.transifex.com/projects/p/wunderground/language/pl_PL/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: pl_PL\n"
14
  "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
15
- "X-Generator: Poedit 1.7beta3\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
@@ -25,7 +26,7 @@ msgstr ""
25
 
26
  #: inc/class-template.php:68
27
  msgid "The location could not be found."
28
- msgstr ""
29
 
30
  #: inc/class-template.php:69
31
  #, php-format
@@ -39,17 +40,17 @@ msgstr ""
39
 
40
  #: inc/class-template.php:71
41
  msgid "Currently"
42
- msgstr ""
43
 
44
  #: inc/class-template.php:72
45
  #, php-format
46
  msgid "High %d&deg;"
47
- msgstr ""
48
 
49
  #: inc/class-template.php:73
50
  #, php-format
51
  msgid "Low %d&deg;"
52
- msgstr ""
53
 
54
  #: inc/class-template.php:74
55
  #, php-format
@@ -73,7 +74,7 @@ msgstr ""
73
 
74
  #: inc/class-template.php:149
75
  msgid "Current Conditions"
76
- msgstr ""
77
 
78
  #: inc/class-template.php:150
79
  msgid "Simple display of the current conditions."
@@ -112,174 +113,177 @@ msgstr ""
112
 
113
  #: inc/class-widget.php:48 inc/functions.php:176
114
  msgid "Wunderground"
 
 
 
 
 
115
  msgstr ""
116
 
117
- #: inc/class-widget.php:152
118
  msgid "Title"
119
- msgstr ""
120
 
121
- #: inc/class-widget.php:153
122
  msgid "Leave empty to hide the widget title."
123
- msgstr ""
124
 
125
- #: inc/class-widget.php:159
126
  msgid "Location"
127
- msgstr ""
128
 
129
- #: inc/class-widget.php:160
130
  msgid "Locations will autoload, but you may also define custom locations."
131
  msgstr ""
132
 
133
- #: inc/class-widget.php:161
134
  msgid "Enter the name of a location."
135
- msgstr ""
136
 
137
- #: inc/class-widget.php:168
138
  msgid "Location Title"
139
- msgstr ""
140
 
141
- #: inc/class-widget.php:169
142
  msgid "Change how the location is displayed in the widget search field."
143
  msgstr ""
144
 
145
- #: inc/class-widget.php:170
146
  msgid "Leave empty to use the location name."
147
  msgstr ""
148
 
149
- #: inc/class-widget.php:171
150
  msgid ""
151
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
152
  "set the Location Title as \"Denver\", which is simpler."
153
  msgstr ""
154
 
155
- #: inc/class-widget.php:180
156
  msgid "# of Days in Forecast"
157
  msgstr ""
158
 
159
- #: inc/class-widget.php:186
160
  msgid "Include Current Conditions"
161
- msgstr ""
162
 
163
- #: inc/class-widget.php:187
164
  msgid "Add the current conditions to the forecast."
165
- msgstr ""
166
 
167
- #: inc/class-widget.php:193
168
  msgid "Include Night Forecasts"
169
- msgstr ""
170
 
171
- #: inc/class-widget.php:194
172
  msgid "This will result in double the number of forecasts shown."
173
  msgstr ""
174
 
175
- #: inc/class-widget.php:200
176
  msgid "Icon Set"
177
  msgstr ""
178
 
179
- #: inc/class-widget.php:201
180
  msgid ""
181
  "Choose the look and feel of the images that will represent the weather."
182
  msgstr ""
183
 
184
- #: inc/class-widget.php:229
185
  msgid "Widget Template"
186
  msgstr ""
187
 
188
- #: inc/class-widget.php:230
189
  msgid "Choose how you would like to display the forecast."
190
  msgstr ""
191
 
192
- #: inc/class-widget.php:235
193
  msgid "Show in Forecast"
194
  msgstr ""
195
 
196
- #: inc/class-widget.php:240
197
  msgid "Search Form"
198
  msgstr ""
199
 
200
- #: inc/class-widget.php:241
201
  msgid "Allow searching weather forecasts."
202
  msgstr ""
203
 
204
- #: inc/class-widget.php:244
205
  msgid "Weekday Labels"
206
  msgstr ""
207
 
208
- #: inc/class-widget.php:245
209
  msgid "Show the names of the days of the week."
210
  msgstr ""
211
 
212
- #: inc/class-widget.php:248
213
  msgid "Date"
214
- msgstr ""
215
 
216
- #: inc/class-widget.php:249
217
  msgid "Display the date numerically (\"09/14\")."
218
  msgstr ""
219
 
220
- #: inc/class-widget.php:252
221
  msgid "Weather Icon"
222
- msgstr ""
223
 
224
- #: inc/class-widget.php:253
225
  msgid "Icon representing the forecast conditions."
226
  msgstr ""
227
 
228
- #: inc/class-widget.php:256
229
  msgid "Chance of Rain"
230
- msgstr ""
231
 
232
- #: inc/class-widget.php:257
233
  msgid "Display the percent chance of rain."
234
- msgstr ""
235
 
236
- #: inc/class-widget.php:260
237
  msgid "High & Low Temp"
238
- msgstr ""
239
 
240
- #: inc/class-widget.php:261
241
  msgid "Show the high & low temperatures for forecast."
242
- msgstr ""
243
 
244
- #: inc/class-widget.php:264
245
  msgid "Condition Title"
246
  msgstr ""
247
 
248
- #: inc/class-widget.php:265
249
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
250
  msgstr ""
251
 
252
- #: inc/class-widget.php:268
253
  msgid "Forecast Text"
254
  msgstr ""
255
 
256
- #: inc/class-widget.php:269
257
  msgid "Display a description of the forecast, normally in sentence format."
258
  msgstr ""
259
 
260
- #: inc/class-widget.php:272
261
  msgid "Weather Alerts &amp; Warnings"
262
  msgstr ""
263
 
264
- #: inc/class-widget.php:273
265
- msgid ""
266
- "This functionality is currently not working; we are working with "
267
- "Wunderground.com to restore it."
268
  msgstr ""
269
 
270
- #: inc/class-widget.php:289
271
  msgid "Forecast Language"
272
  msgstr ""
273
 
274
- #: inc/class-widget.php:300
275
  msgid "Measurements"
276
  msgstr ""
277
 
278
- #: inc/class-widget.php:303
279
  msgid "Fahrenheit &amp; Inches"
280
  msgstr ""
281
 
282
- #: inc/class-widget.php:306
283
  msgid "Celsius &amp; Meters"
284
  msgstr ""
285
 
@@ -333,19 +337,19 @@ msgstr ""
333
 
334
  #: inc/functions.php:363
335
  msgid "Afrikaans"
336
- msgstr ""
337
 
338
  #: inc/functions.php:368
339
  msgid "Albanian"
340
- msgstr ""
341
 
342
  #: inc/functions.php:373
343
  msgid "Arabic"
344
- msgstr ""
345
 
346
  #: inc/functions.php:379
347
  msgid "Armenian"
348
- msgstr ""
349
 
350
  #: inc/functions.php:384
351
  msgid "Azerbaijani"
@@ -353,19 +357,19 @@ msgstr ""
353
 
354
  #: inc/functions.php:389
355
  msgid "Basque"
356
- msgstr ""
357
 
358
  #: inc/functions.php:394
359
  msgid "Belarusian"
360
- msgstr ""
361
 
362
  #: inc/functions.php:399
363
  msgid "Bulgarian"
364
- msgstr ""
365
 
366
  #: inc/functions.php:404
367
  msgid "British English"
368
- msgstr ""
369
 
370
  #: inc/functions.php:409
371
  msgid "Burmese"
@@ -373,23 +377,23 @@ msgstr ""
373
 
374
  #: inc/functions.php:414
375
  msgid "Catalan"
376
- msgstr ""
377
 
378
  #: inc/functions.php:419
379
  msgid "Chinese - Simplified"
380
- msgstr ""
381
 
382
  #: inc/functions.php:424
383
  msgid "Chinese - Traditional"
384
- msgstr ""
385
 
386
  #: inc/functions.php:429
387
  msgid "Croatian"
388
- msgstr ""
389
 
390
  #: inc/functions.php:434
391
  msgid "Czech"
392
- msgstr ""
393
 
394
  #: inc/functions.php:439
395
  msgid "Danish"
@@ -405,15 +409,15 @@ msgstr ""
405
 
406
  #: inc/functions.php:455
407
  msgid "English"
408
- msgstr ""
409
 
410
  #: inc/functions.php:460
411
  msgid "Esperanto"
412
- msgstr ""
413
 
414
  #: inc/functions.php:465
415
  msgid "Estonian"
416
- msgstr ""
417
 
418
  #: inc/functions.php:470
419
  msgid "Farsi"
@@ -421,23 +425,23 @@ msgstr ""
421
 
422
  #: inc/functions.php:475
423
  msgid "Finnish"
424
- msgstr ""
425
 
426
  #: inc/functions.php:480
427
  msgid "French"
428
- msgstr ""
429
 
430
  #: inc/functions.php:485
431
  msgid "French Canadian"
432
- msgstr ""
433
 
434
  #: inc/functions.php:490
435
  msgid "Galician"
436
- msgstr ""
437
 
438
  #: inc/functions.php:495
439
  msgid "German"
440
- msgstr ""
441
 
442
  #: inc/functions.php:500
443
  msgid "Georgian"
@@ -445,7 +449,7 @@ msgstr ""
445
 
446
  #: inc/functions.php:505
447
  msgid "Greek"
448
- msgstr ""
449
 
450
  #: inc/functions.php:510
451
  msgid "Gujarati"
@@ -461,15 +465,15 @@ msgstr ""
461
 
462
  #: inc/functions.php:526
463
  msgid "Hindi"
464
- msgstr ""
465
 
466
  #: inc/functions.php:531
467
  msgid "Hungarian"
468
- msgstr ""
469
 
470
  #: inc/functions.php:536
471
  msgid "Icelandic"
472
- msgstr ""
473
 
474
  #: inc/functions.php:541
475
  msgid "Ido"
@@ -477,7 +481,7 @@ msgstr ""
477
 
478
  #: inc/functions.php:546
479
  msgid "Indonesian"
480
- msgstr ""
481
 
482
  #: inc/functions.php:551
483
  msgid "Irish Gaelic"
@@ -485,11 +489,11 @@ msgstr ""
485
 
486
  #: inc/functions.php:556
487
  msgid "Italian"
488
- msgstr ""
489
 
490
  #: inc/functions.php:561
491
  msgid "Japanese"
492
- msgstr ""
493
 
494
  #: inc/functions.php:566
495
  msgid "Javanese"
@@ -501,11 +505,11 @@ msgstr ""
501
 
502
  #: inc/functions.php:576
503
  msgid "Korean"
504
- msgstr ""
505
 
506
  #: inc/functions.php:581
507
  msgid "Kurdish"
508
- msgstr ""
509
 
510
  #: inc/functions.php:587
511
  msgid "Latin"
@@ -545,11 +549,11 @@ msgstr ""
545
 
546
  #: inc/functions.php:632
547
  msgid "Mongolian"
548
- msgstr ""
549
 
550
  #: inc/functions.php:637
551
  msgid "Norwegian"
552
- msgstr ""
553
 
554
  #: inc/functions.php:642
555
  msgid "Occitan"
@@ -565,11 +569,11 @@ msgstr ""
565
 
566
  #: inc/functions.php:658
567
  msgid "Polish"
568
- msgstr ""
569
 
570
  #: inc/functions.php:663
571
  msgid "Portuguese"
572
- msgstr ""
573
 
574
  #: inc/functions.php:668
575
  msgid "Punjabi"
@@ -577,27 +581,27 @@ msgstr ""
577
 
578
  #: inc/functions.php:674
579
  msgid "Romanian"
580
- msgstr ""
581
 
582
  #: inc/functions.php:679
583
  msgid "Russian"
584
- msgstr ""
585
 
586
  #: inc/functions.php:684
587
  msgid "Serbian"
588
- msgstr ""
589
 
590
  #: inc/functions.php:689
591
  msgid "Slovak"
592
- msgstr ""
593
 
594
  #: inc/functions.php:694
595
  msgid "Slovenian"
596
- msgstr ""
597
 
598
  #: inc/functions.php:699
599
  msgid "Spanish"
600
- msgstr ""
601
 
602
  #: inc/functions.php:704
603
  msgid "Swahili"
@@ -605,11 +609,11 @@ msgstr ""
605
 
606
  #: inc/functions.php:709
607
  msgid "Swedish"
608
- msgstr ""
609
 
610
  #: inc/functions.php:714
611
  msgid "Swiss"
612
- msgstr ""
613
 
614
  #: inc/functions.php:719
615
  msgid "Tagalog"
@@ -617,15 +621,15 @@ msgstr ""
617
 
618
  #: inc/functions.php:724
619
  msgid "Tatarish"
620
- msgstr ""
621
 
622
  #: inc/functions.php:729
623
  msgid "Thai"
624
- msgstr ""
625
 
626
  #: inc/functions.php:734
627
  msgid "Turkish"
628
- msgstr ""
629
 
630
  #: inc/functions.php:739
631
  msgid "Turkmen"
@@ -633,15 +637,15 @@ msgstr ""
633
 
634
  #: inc/functions.php:744
635
  msgid "Ukrainian"
636
- msgstr ""
637
 
638
  #: inc/functions.php:749
639
  msgid "Uzbek"
640
- msgstr ""
641
 
642
  #: inc/functions.php:754
643
  msgid "Vietnamese"
644
- msgstr ""
645
 
646
  #: inc/functions.php:759
647
  msgid "Welsh"
1
  #
2
  # Translators:
3
+ # Cezary <cezar.mr@wp.pl>, 2015
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Wunderground\n"
7
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
8
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
9
+ "Last-Translator: Zachary Katz <zack@katz.co>\n"
10
+ "Language-Team: Polish (Poland) (http://www.transifex.com/katzwebservices/wunderground/language/pl_PL/)\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "Language: pl_PL\n"
15
  "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
16
+ "X-Generator: Poedit 1.7.1\n"
17
  "X-Poedit-Basepath: ..\n"
18
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
19
  "X-Poedit-SearchPath-0: .\n"
26
 
27
  #: inc/class-template.php:68
28
  msgid "The location could not be found."
29
+ msgstr "Lokalizacja nie została odnaleziona"
30
 
31
  #: inc/class-template.php:69
32
  #, php-format
40
 
41
  #: inc/class-template.php:71
42
  msgid "Currently"
43
+ msgstr "Aktualnie"
44
 
45
  #: inc/class-template.php:72
46
  #, php-format
47
  msgid "High %d&deg;"
48
+ msgstr "Najwyższa %d&deg;"
49
 
50
  #: inc/class-template.php:73
51
  #, php-format
52
  msgid "Low %d&deg;"
53
+ msgstr "Najniższa %d&deg;"
54
 
55
  #: inc/class-template.php:74
56
  #, php-format
74
 
75
  #: inc/class-template.php:149
76
  msgid "Current Conditions"
77
+ msgstr "Aktualne warunki"
78
 
79
  #: inc/class-template.php:150
80
  msgid "Simple display of the current conditions."
113
 
114
  #: inc/class-widget.php:48 inc/functions.php:176
115
  msgid "Wunderground"
116
+ msgstr "Wunderground"
117
+
118
+ #: inc/class-widget.php:132
119
+ #, php-format
120
+ msgid "There was an error fetching the forecast: %s"
121
  msgstr ""
122
 
123
+ #: inc/class-widget.php:169
124
  msgid "Title"
125
+ msgstr "Tytuł"
126
 
127
+ #: inc/class-widget.php:170
128
  msgid "Leave empty to hide the widget title."
129
+ msgstr "Pozostaw puste, aby ukryć tytuł widżetu"
130
 
131
+ #: inc/class-widget.php:176
132
  msgid "Location"
133
+ msgstr "Lokalizacja"
134
 
135
+ #: inc/class-widget.php:177
136
  msgid "Locations will autoload, but you may also define custom locations."
137
  msgstr ""
138
 
139
+ #: inc/class-widget.php:178
140
  msgid "Enter the name of a location."
141
+ msgstr "Wpisz nazwę miejscowości"
142
 
143
+ #: inc/class-widget.php:185
144
  msgid "Location Title"
145
+ msgstr "Nazwa miejscowości"
146
 
147
+ #: inc/class-widget.php:186
148
  msgid "Change how the location is displayed in the widget search field."
149
  msgstr ""
150
 
151
+ #: inc/class-widget.php:187
152
  msgid "Leave empty to use the location name."
153
  msgstr ""
154
 
155
+ #: inc/class-widget.php:188
156
  msgid ""
157
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
158
  "set the Location Title as \"Denver\", which is simpler."
159
  msgstr ""
160
 
161
+ #: inc/class-widget.php:197
162
  msgid "# of Days in Forecast"
163
  msgstr ""
164
 
165
+ #: inc/class-widget.php:203
166
  msgid "Include Current Conditions"
167
+ msgstr "Zawrzyj aktualne warunki"
168
 
169
+ #: inc/class-widget.php:204
170
  msgid "Add the current conditions to the forecast."
171
+ msgstr "Dodaj aktualne warunki do prognozy"
172
 
173
+ #: inc/class-widget.php:210
174
  msgid "Include Night Forecasts"
175
+ msgstr "Zawrzyj nocne warunki"
176
 
177
+ #: inc/class-widget.php:211
178
  msgid "This will result in double the number of forecasts shown."
179
  msgstr ""
180
 
181
+ #: inc/class-widget.php:217
182
  msgid "Icon Set"
183
  msgstr ""
184
 
185
+ #: inc/class-widget.php:218
186
  msgid ""
187
  "Choose the look and feel of the images that will represent the weather."
188
  msgstr ""
189
 
190
+ #: inc/class-widget.php:246
191
  msgid "Widget Template"
192
  msgstr ""
193
 
194
+ #: inc/class-widget.php:247
195
  msgid "Choose how you would like to display the forecast."
196
  msgstr ""
197
 
198
+ #: inc/class-widget.php:252
199
  msgid "Show in Forecast"
200
  msgstr ""
201
 
202
+ #: inc/class-widget.php:257
203
  msgid "Search Form"
204
  msgstr ""
205
 
206
+ #: inc/class-widget.php:258
207
  msgid "Allow searching weather forecasts."
208
  msgstr ""
209
 
210
+ #: inc/class-widget.php:261
211
  msgid "Weekday Labels"
212
  msgstr ""
213
 
214
+ #: inc/class-widget.php:262
215
  msgid "Show the names of the days of the week."
216
  msgstr ""
217
 
218
+ #: inc/class-widget.php:265
219
  msgid "Date"
220
+ msgstr "Data"
221
 
222
+ #: inc/class-widget.php:266
223
  msgid "Display the date numerically (\"09/14\")."
224
  msgstr ""
225
 
226
+ #: inc/class-widget.php:269
227
  msgid "Weather Icon"
228
+ msgstr "Ikona pogody"
229
 
230
+ #: inc/class-widget.php:270
231
  msgid "Icon representing the forecast conditions."
232
  msgstr ""
233
 
234
+ #: inc/class-widget.php:273
235
  msgid "Chance of Rain"
236
+ msgstr "Szansa na deszcz"
237
 
238
+ #: inc/class-widget.php:274
239
  msgid "Display the percent chance of rain."
240
+ msgstr "Wyświetl procentową szansę na deszcz"
241
 
242
+ #: inc/class-widget.php:277
243
  msgid "High & Low Temp"
244
+ msgstr "Najwyższa i najniższa temperatura"
245
 
246
+ #: inc/class-widget.php:278
247
  msgid "Show the high & low temperatures for forecast."
248
+ msgstr "Pokaż najwyższą i najniższą temperaturę w prognozie"
249
 
250
+ #: inc/class-widget.php:281
251
  msgid "Condition Title"
252
  msgstr ""
253
 
254
+ #: inc/class-widget.php:282
255
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
256
  msgstr ""
257
 
258
+ #: inc/class-widget.php:285
259
  msgid "Forecast Text"
260
  msgstr ""
261
 
262
+ #: inc/class-widget.php:286
263
  msgid "Display a description of the forecast, normally in sentence format."
264
  msgstr ""
265
 
266
+ #: inc/class-widget.php:289
267
  msgid "Weather Alerts &amp; Warnings"
268
  msgstr ""
269
 
270
+ #: inc/class-widget.php:290
271
+ msgid "Display Severe Weather alerts and warnings."
 
 
272
  msgstr ""
273
 
274
+ #: inc/class-widget.php:306
275
  msgid "Forecast Language"
276
  msgstr ""
277
 
278
+ #: inc/class-widget.php:317
279
  msgid "Measurements"
280
  msgstr ""
281
 
282
+ #: inc/class-widget.php:320
283
  msgid "Fahrenheit &amp; Inches"
284
  msgstr ""
285
 
286
+ #: inc/class-widget.php:323
287
  msgid "Celsius &amp; Meters"
288
  msgstr ""
289
 
337
 
338
  #: inc/functions.php:363
339
  msgid "Afrikaans"
340
+ msgstr "Afrykański"
341
 
342
  #: inc/functions.php:368
343
  msgid "Albanian"
344
+ msgstr "Albański"
345
 
346
  #: inc/functions.php:373
347
  msgid "Arabic"
348
+ msgstr "Arabski"
349
 
350
  #: inc/functions.php:379
351
  msgid "Armenian"
352
+ msgstr "Armeński"
353
 
354
  #: inc/functions.php:384
355
  msgid "Azerbaijani"
357
 
358
  #: inc/functions.php:389
359
  msgid "Basque"
360
+ msgstr "Baskijski"
361
 
362
  #: inc/functions.php:394
363
  msgid "Belarusian"
364
+ msgstr "Białoruski"
365
 
366
  #: inc/functions.php:399
367
  msgid "Bulgarian"
368
+ msgstr "Bułgarski"
369
 
370
  #: inc/functions.php:404
371
  msgid "British English"
372
+ msgstr "Brytyjski Angielski"
373
 
374
  #: inc/functions.php:409
375
  msgid "Burmese"
377
 
378
  #: inc/functions.php:414
379
  msgid "Catalan"
380
+ msgstr "Kataloński"
381
 
382
  #: inc/functions.php:419
383
  msgid "Chinese - Simplified"
384
+ msgstr "Chiński uproszczony"
385
 
386
  #: inc/functions.php:424
387
  msgid "Chinese - Traditional"
388
+ msgstr "Chiński tradycyjny"
389
 
390
  #: inc/functions.php:429
391
  msgid "Croatian"
392
+ msgstr "Chorwacki"
393
 
394
  #: inc/functions.php:434
395
  msgid "Czech"
396
+ msgstr "Czeski"
397
 
398
  #: inc/functions.php:439
399
  msgid "Danish"
409
 
410
  #: inc/functions.php:455
411
  msgid "English"
412
+ msgstr "Angielski"
413
 
414
  #: inc/functions.php:460
415
  msgid "Esperanto"
416
+ msgstr "Esperanto"
417
 
418
  #: inc/functions.php:465
419
  msgid "Estonian"
420
+ msgstr "Estoński"
421
 
422
  #: inc/functions.php:470
423
  msgid "Farsi"
425
 
426
  #: inc/functions.php:475
427
  msgid "Finnish"
428
+ msgstr "Fiński"
429
 
430
  #: inc/functions.php:480
431
  msgid "French"
432
+ msgstr "Francuski"
433
 
434
  #: inc/functions.php:485
435
  msgid "French Canadian"
436
+ msgstr "Francuski Kanadyjski"
437
 
438
  #: inc/functions.php:490
439
  msgid "Galician"
440
+ msgstr "Galicyjski"
441
 
442
  #: inc/functions.php:495
443
  msgid "German"
444
+ msgstr "Niemiecki"
445
 
446
  #: inc/functions.php:500
447
  msgid "Georgian"
449
 
450
  #: inc/functions.php:505
451
  msgid "Greek"
452
+ msgstr "Grecki"
453
 
454
  #: inc/functions.php:510
455
  msgid "Gujarati"
465
 
466
  #: inc/functions.php:526
467
  msgid "Hindi"
468
+ msgstr "Hindi"
469
 
470
  #: inc/functions.php:531
471
  msgid "Hungarian"
472
+ msgstr "Węgierski"
473
 
474
  #: inc/functions.php:536
475
  msgid "Icelandic"
476
+ msgstr "Grenlandzki"
477
 
478
  #: inc/functions.php:541
479
  msgid "Ido"
481
 
482
  #: inc/functions.php:546
483
  msgid "Indonesian"
484
+ msgstr "Indonezyjski"
485
 
486
  #: inc/functions.php:551
487
  msgid "Irish Gaelic"
489
 
490
  #: inc/functions.php:556
491
  msgid "Italian"
492
+ msgstr "Włoski"
493
 
494
  #: inc/functions.php:561
495
  msgid "Japanese"
496
+ msgstr "Japoński"
497
 
498
  #: inc/functions.php:566
499
  msgid "Javanese"
505
 
506
  #: inc/functions.php:576
507
  msgid "Korean"
508
+ msgstr "Koreański"
509
 
510
  #: inc/functions.php:581
511
  msgid "Kurdish"
512
+ msgstr "Kurdyjski"
513
 
514
  #: inc/functions.php:587
515
  msgid "Latin"
549
 
550
  #: inc/functions.php:632
551
  msgid "Mongolian"
552
+ msgstr "Mongolski"
553
 
554
  #: inc/functions.php:637
555
  msgid "Norwegian"
556
+ msgstr "Norweski"
557
 
558
  #: inc/functions.php:642
559
  msgid "Occitan"
569
 
570
  #: inc/functions.php:658
571
  msgid "Polish"
572
+ msgstr "Polski"
573
 
574
  #: inc/functions.php:663
575
  msgid "Portuguese"
576
+ msgstr "Portugalski"
577
 
578
  #: inc/functions.php:668
579
  msgid "Punjabi"
581
 
582
  #: inc/functions.php:674
583
  msgid "Romanian"
584
+ msgstr "Rumuński"
585
 
586
  #: inc/functions.php:679
587
  msgid "Russian"
588
+ msgstr "Rosyjski"
589
 
590
  #: inc/functions.php:684
591
  msgid "Serbian"
592
+ msgstr "Serbski"
593
 
594
  #: inc/functions.php:689
595
  msgid "Slovak"
596
+ msgstr "Słowacki"
597
 
598
  #: inc/functions.php:694
599
  msgid "Slovenian"
600
+ msgstr "Słoweński"
601
 
602
  #: inc/functions.php:699
603
  msgid "Spanish"
604
+ msgstr "Hiszpański"
605
 
606
  #: inc/functions.php:704
607
  msgid "Swahili"
609
 
610
  #: inc/functions.php:709
611
  msgid "Swedish"
612
+ msgstr "Szwedzki"
613
 
614
  #: inc/functions.php:714
615
  msgid "Swiss"
616
+ msgstr "Szwajcarski"
617
 
618
  #: inc/functions.php:719
619
  msgid "Tagalog"
621
 
622
  #: inc/functions.php:724
623
  msgid "Tatarish"
624
+ msgstr "Tatarski"
625
 
626
  #: inc/functions.php:729
627
  msgid "Thai"
628
+ msgstr "Tajski"
629
 
630
  #: inc/functions.php:734
631
  msgid "Turkish"
632
+ msgstr "Turecki"
633
 
634
  #: inc/functions.php:739
635
  msgid "Turkmen"
637
 
638
  #: inc/functions.php:744
639
  msgid "Ukrainian"
640
+ msgstr "Ukraiński"
641
 
642
  #: inc/functions.php:749
643
  msgid "Uzbek"
644
+ msgstr "Uzbecki"
645
 
646
  #: inc/functions.php:754
647
  msgid "Vietnamese"
648
+ msgstr "Wietnamski"
649
 
650
  #: inc/functions.php:759
651
  msgid "Welsh"
languages/wunderground-pt_BR.mo CHANGED
Binary file
languages/wunderground-pt_BR.po CHANGED
@@ -1,18 +1,20 @@
1
  #
2
  # Translators:
 
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
7
- "PO-Revision-Date: 2014-12-04 20:12+0000\n"
8
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
- "Language-Team: Portuguese (Brazil) (http://www.transifex.com/projects/p/wunderground/language/pt_BR/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: pt_BR\n"
14
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
15
- "X-Generator: Poedit 1.7beta3\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
@@ -21,265 +23,268 @@ msgstr ""
21
  #: inc/class-template.php:67
22
  #, php-format
23
  msgid "Statement as of %s"
24
- msgstr ""
25
 
26
  #: inc/class-template.php:68
27
  msgid "The location could not be found."
28
- msgstr ""
29
 
30
  #: inc/class-template.php:69
31
  #, php-format
32
  msgid "%s%%"
33
- msgstr ""
34
 
35
  #: inc/class-template.php:70
36
  #, php-format
37
  msgid "%s%% Chance of Precipitation"
38
- msgstr ""
39
 
40
  #: inc/class-template.php:71
41
  msgid "Currently"
42
- msgstr ""
43
 
44
  #: inc/class-template.php:72
45
  #, php-format
46
  msgid "High %d&deg;"
47
- msgstr ""
48
 
49
  #: inc/class-template.php:73
50
  #, php-format
51
  msgid "Low %d&deg;"
52
- msgstr ""
53
 
54
  #: inc/class-template.php:74
55
  #, php-format
56
  msgid "%d&deg;"
57
- msgstr ""
58
 
59
  #: inc/class-template.php:75
60
  #, php-format
61
  msgid "View the %s forecast on Wunderground.com"
62
- msgstr ""
63
 
64
  #: inc/class-template.php:76
65
  msgctxt "Weather alert issued date/time"
66
  msgid "Issued:"
67
- msgstr ""
68
 
69
  #: inc/class-template.php:77
70
  msgctxt "Weather alert expires date/time"
71
  msgid "Expires:"
72
- msgstr ""
73
 
74
  #: inc/class-template.php:149
75
  msgid "Current Conditions"
76
- msgstr ""
77
 
78
  #: inc/class-template.php:150
79
  msgid "Simple display of the current conditions."
80
- msgstr ""
81
 
82
  #: inc/class-template.php:155
83
  msgid "Grid Forecast"
84
- msgstr ""
85
 
86
  #: inc/class-template.php:156
87
  msgid "Scales to any screen size."
88
- msgstr ""
89
 
90
  #: inc/class-template.php:161
91
  msgid "Details Table"
92
- msgstr ""
93
 
94
  #: inc/class-template.php:162
95
  msgid ""
96
  "Display the forecast in a table with rows. Great for in-depth forecast "
97
  "display."
98
- msgstr ""
99
 
100
  #: inc/class-template.php:167
101
  msgid "Horizontal Table"
102
- msgstr ""
103
 
104
  #: inc/class-template.php:168
105
  msgid ""
106
  "Display the forecast in a table with columns. Great for forecast summaries."
107
- msgstr ""
108
 
109
  #: inc/class-widget.php:43
110
  msgid "Add a Wunderground.com forecast"
111
- msgstr ""
112
 
113
  #: inc/class-widget.php:48 inc/functions.php:176
114
  msgid "Wunderground"
 
 
 
 
 
115
  msgstr ""
116
 
117
- #: inc/class-widget.php:152
118
  msgid "Title"
119
- msgstr ""
120
 
121
- #: inc/class-widget.php:153
122
  msgid "Leave empty to hide the widget title."
123
- msgstr ""
124
 
125
- #: inc/class-widget.php:159
126
  msgid "Location"
127
- msgstr ""
128
 
129
- #: inc/class-widget.php:160
130
  msgid "Locations will autoload, but you may also define custom locations."
131
  msgstr ""
132
 
133
- #: inc/class-widget.php:161
134
  msgid "Enter the name of a location."
135
- msgstr ""
136
 
137
- #: inc/class-widget.php:168
138
  msgid "Location Title"
139
- msgstr ""
140
 
141
- #: inc/class-widget.php:169
142
  msgid "Change how the location is displayed in the widget search field."
143
- msgstr ""
144
 
145
- #: inc/class-widget.php:170
146
  msgid "Leave empty to use the location name."
147
- msgstr ""
148
 
149
- #: inc/class-widget.php:171
150
  msgid ""
151
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
152
  "set the Location Title as \"Denver\", which is simpler."
153
  msgstr ""
154
 
155
- #: inc/class-widget.php:180
156
  msgid "# of Days in Forecast"
157
- msgstr ""
158
 
159
- #: inc/class-widget.php:186
160
  msgid "Include Current Conditions"
161
- msgstr ""
162
 
163
- #: inc/class-widget.php:187
164
  msgid "Add the current conditions to the forecast."
165
- msgstr ""
166
 
167
- #: inc/class-widget.php:193
168
  msgid "Include Night Forecasts"
169
- msgstr ""
170
 
171
- #: inc/class-widget.php:194
172
  msgid "This will result in double the number of forecasts shown."
173
- msgstr ""
174
 
175
- #: inc/class-widget.php:200
176
  msgid "Icon Set"
177
- msgstr ""
178
 
179
- #: inc/class-widget.php:201
180
  msgid ""
181
  "Choose the look and feel of the images that will represent the weather."
182
  msgstr ""
183
 
184
- #: inc/class-widget.php:229
185
  msgid "Widget Template"
186
  msgstr ""
187
 
188
- #: inc/class-widget.php:230
189
  msgid "Choose how you would like to display the forecast."
190
  msgstr ""
191
 
192
- #: inc/class-widget.php:235
193
  msgid "Show in Forecast"
194
  msgstr ""
195
 
196
- #: inc/class-widget.php:240
197
  msgid "Search Form"
198
  msgstr ""
199
 
200
- #: inc/class-widget.php:241
201
  msgid "Allow searching weather forecasts."
202
  msgstr ""
203
 
204
- #: inc/class-widget.php:244
205
  msgid "Weekday Labels"
206
  msgstr ""
207
 
208
- #: inc/class-widget.php:245
209
  msgid "Show the names of the days of the week."
210
  msgstr ""
211
 
212
- #: inc/class-widget.php:248
213
  msgid "Date"
214
  msgstr ""
215
 
216
- #: inc/class-widget.php:249
217
  msgid "Display the date numerically (\"09/14\")."
218
  msgstr ""
219
 
220
- #: inc/class-widget.php:252
221
  msgid "Weather Icon"
222
  msgstr ""
223
 
224
- #: inc/class-widget.php:253
225
  msgid "Icon representing the forecast conditions."
226
  msgstr ""
227
 
228
- #: inc/class-widget.php:256
229
  msgid "Chance of Rain"
230
  msgstr ""
231
 
232
- #: inc/class-widget.php:257
233
  msgid "Display the percent chance of rain."
234
  msgstr ""
235
 
236
- #: inc/class-widget.php:260
237
  msgid "High & Low Temp"
238
  msgstr ""
239
 
240
- #: inc/class-widget.php:261
241
  msgid "Show the high & low temperatures for forecast."
242
  msgstr ""
243
 
244
- #: inc/class-widget.php:264
245
  msgid "Condition Title"
246
  msgstr ""
247
 
248
- #: inc/class-widget.php:265
249
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
250
  msgstr ""
251
 
252
- #: inc/class-widget.php:268
253
  msgid "Forecast Text"
254
  msgstr ""
255
 
256
- #: inc/class-widget.php:269
257
  msgid "Display a description of the forecast, normally in sentence format."
258
  msgstr ""
259
 
260
- #: inc/class-widget.php:272
261
  msgid "Weather Alerts &amp; Warnings"
262
  msgstr ""
263
 
264
- #: inc/class-widget.php:273
265
- msgid ""
266
- "This functionality is currently not working; we are working with "
267
- "Wunderground.com to restore it."
268
  msgstr ""
269
 
270
- #: inc/class-widget.php:289
271
  msgid "Forecast Language"
272
  msgstr ""
273
 
274
- #: inc/class-widget.php:300
275
  msgid "Measurements"
276
  msgstr ""
277
 
278
- #: inc/class-widget.php:303
279
  msgid "Fahrenheit &amp; Inches"
280
  msgstr ""
281
 
282
- #: inc/class-widget.php:306
283
  msgid "Celsius &amp; Meters"
284
  msgstr ""
285
 
1
  #
2
  # Translators:
3
+ # Filipe <filipe.magellan@gmail.com>, 2015
4
+ # Nisan F. da Silva <nznpge@gmail.com>, 2015
5
  msgid ""
6
  msgstr ""
7
  "Project-Id-Version: Wunderground\n"
8
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
9
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
10
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
11
+ "Language-Team: Portuguese (Brazil) (http://www.transifex.com/katzwebservices/wunderground/language/pt_BR/)\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
  "Language: pt_BR\n"
16
  "Plural-Forms: nplurals=2; plural=(n > 1);\n"
17
+ "X-Generator: Poedit 1.7.1\n"
18
  "X-Poedit-Basepath: ..\n"
19
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
20
  "X-Poedit-SearchPath-0: .\n"
23
  #: inc/class-template.php:67
24
  #, php-format
25
  msgid "Statement as of %s"
26
+ msgstr "Declaração começando em %s"
27
 
28
  #: inc/class-template.php:68
29
  msgid "The location could not be found."
30
+ msgstr "A localização não foi encontrada"
31
 
32
  #: inc/class-template.php:69
33
  #, php-format
34
  msgid "%s%%"
35
+ msgstr "%s%%"
36
 
37
  #: inc/class-template.php:70
38
  #, php-format
39
  msgid "%s%% Chance of Precipitation"
40
+ msgstr "%s%% Possibilidade de precipitação"
41
 
42
  #: inc/class-template.php:71
43
  msgid "Currently"
44
+ msgstr "Atualmente"
45
 
46
  #: inc/class-template.php:72
47
  #, php-format
48
  msgid "High %d&deg;"
49
+ msgstr "Máxima %d&deg;"
50
 
51
  #: inc/class-template.php:73
52
  #, php-format
53
  msgid "Low %d&deg;"
54
+ msgstr "Mínima %d&deg;"
55
 
56
  #: inc/class-template.php:74
57
  #, php-format
58
  msgid "%d&deg;"
59
+ msgstr "%d&deg;"
60
 
61
  #: inc/class-template.php:75
62
  #, php-format
63
  msgid "View the %s forecast on Wunderground.com"
64
+ msgstr "Veja a %s previsão em Wunderground.com"
65
 
66
  #: inc/class-template.php:76
67
  msgctxt "Weather alert issued date/time"
68
  msgid "Issued:"
69
+ msgstr "Editado:"
70
 
71
  #: inc/class-template.php:77
72
  msgctxt "Weather alert expires date/time"
73
  msgid "Expires:"
74
+ msgstr "Expira:"
75
 
76
  #: inc/class-template.php:149
77
  msgid "Current Conditions"
78
+ msgstr "Condições Atuais"
79
 
80
  #: inc/class-template.php:150
81
  msgid "Simple display of the current conditions."
82
+ msgstr "Exibição simples das condições atuais."
83
 
84
  #: inc/class-template.php:155
85
  msgid "Grid Forecast"
86
+ msgstr "Grade de previsão"
87
 
88
  #: inc/class-template.php:156
89
  msgid "Scales to any screen size."
90
+ msgstr "Escala para qualquer tamanho de tela"
91
 
92
  #: inc/class-template.php:161
93
  msgid "Details Table"
94
+ msgstr "Tabela de detalhes"
95
 
96
  #: inc/class-template.php:162
97
  msgid ""
98
  "Display the forecast in a table with rows. Great for in-depth forecast "
99
  "display."
100
+ msgstr "Mostrar a previsão de uma tabela com linhas. Ótimo para exibição previsão em profundidade."
101
 
102
  #: inc/class-template.php:167
103
  msgid "Horizontal Table"
104
+ msgstr "Tabela Horizontal"
105
 
106
  #: inc/class-template.php:168
107
  msgid ""
108
  "Display the forecast in a table with columns. Great for forecast summaries."
109
+ msgstr "Mostrar a previsão em uma tabela com colunas. Ótimo para resumos de previsão."
110
 
111
  #: inc/class-widget.php:43
112
  msgid "Add a Wunderground.com forecast"
113
+ msgstr "Adicionar uma previsão Wunderground.com"
114
 
115
  #: inc/class-widget.php:48 inc/functions.php:176
116
  msgid "Wunderground"
117
+ msgstr "Wunderground"
118
+
119
+ #: inc/class-widget.php:132
120
+ #, php-format
121
+ msgid "There was an error fetching the forecast: %s"
122
  msgstr ""
123
 
124
+ #: inc/class-widget.php:169
125
  msgid "Title"
126
+ msgstr "Título"
127
 
128
+ #: inc/class-widget.php:170
129
  msgid "Leave empty to hide the widget title."
130
+ msgstr "Deixe em branco para ocultar o título do widget"
131
 
132
+ #: inc/class-widget.php:176
133
  msgid "Location"
134
+ msgstr "Localização"
135
 
136
+ #: inc/class-widget.php:177
137
  msgid "Locations will autoload, but you may also define custom locations."
138
  msgstr ""
139
 
140
+ #: inc/class-widget.php:178
141
  msgid "Enter the name of a location."
142
+ msgstr "Introduza o nome de uma loclidade."
143
 
144
+ #: inc/class-widget.php:185
145
  msgid "Location Title"
146
+ msgstr "Título da localidade"
147
 
148
+ #: inc/class-widget.php:186
149
  msgid "Change how the location is displayed in the widget search field."
150
+ msgstr "Altera a forma de como a localidade é apresentada no campo de pesquisa do widget."
151
 
152
+ #: inc/class-widget.php:187
153
  msgid "Leave empty to use the location name."
154
+ msgstr "Deixe vazio para o nome da localidade."
155
 
156
+ #: inc/class-widget.php:188
157
  msgid ""
158
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
159
  "set the Location Title as \"Denver\", which is simpler."
160
  msgstr ""
161
 
162
+ #: inc/class-widget.php:197
163
  msgid "# of Days in Forecast"
164
+ msgstr "# de dias de previsão"
165
 
166
+ #: inc/class-widget.php:203
167
  msgid "Include Current Conditions"
168
+ msgstr "Incluir condições correntes"
169
 
170
+ #: inc/class-widget.php:204
171
  msgid "Add the current conditions to the forecast."
172
+ msgstr "Adiciona as condições correntes à previsão."
173
 
174
+ #: inc/class-widget.php:210
175
  msgid "Include Night Forecasts"
176
+ msgstr "Incluir pevisões noturnas"
177
 
178
+ #: inc/class-widget.php:211
179
  msgid "This will result in double the number of forecasts shown."
180
+ msgstr "Isto resulta no dobro de previsões apresentadas."
181
 
182
+ #: inc/class-widget.php:217
183
  msgid "Icon Set"
184
+ msgstr "Conjunto de icons."
185
 
186
+ #: inc/class-widget.php:218
187
  msgid ""
188
  "Choose the look and feel of the images that will represent the weather."
189
  msgstr ""
190
 
191
+ #: inc/class-widget.php:246
192
  msgid "Widget Template"
193
  msgstr ""
194
 
195
+ #: inc/class-widget.php:247
196
  msgid "Choose how you would like to display the forecast."
197
  msgstr ""
198
 
199
+ #: inc/class-widget.php:252
200
  msgid "Show in Forecast"
201
  msgstr ""
202
 
203
+ #: inc/class-widget.php:257
204
  msgid "Search Form"
205
  msgstr ""
206
 
207
+ #: inc/class-widget.php:258
208
  msgid "Allow searching weather forecasts."
209
  msgstr ""
210
 
211
+ #: inc/class-widget.php:261
212
  msgid "Weekday Labels"
213
  msgstr ""
214
 
215
+ #: inc/class-widget.php:262
216
  msgid "Show the names of the days of the week."
217
  msgstr ""
218
 
219
+ #: inc/class-widget.php:265
220
  msgid "Date"
221
  msgstr ""
222
 
223
+ #: inc/class-widget.php:266
224
  msgid "Display the date numerically (\"09/14\")."
225
  msgstr ""
226
 
227
+ #: inc/class-widget.php:269
228
  msgid "Weather Icon"
229
  msgstr ""
230
 
231
+ #: inc/class-widget.php:270
232
  msgid "Icon representing the forecast conditions."
233
  msgstr ""
234
 
235
+ #: inc/class-widget.php:273
236
  msgid "Chance of Rain"
237
  msgstr ""
238
 
239
+ #: inc/class-widget.php:274
240
  msgid "Display the percent chance of rain."
241
  msgstr ""
242
 
243
+ #: inc/class-widget.php:277
244
  msgid "High & Low Temp"
245
  msgstr ""
246
 
247
+ #: inc/class-widget.php:278
248
  msgid "Show the high & low temperatures for forecast."
249
  msgstr ""
250
 
251
+ #: inc/class-widget.php:281
252
  msgid "Condition Title"
253
  msgstr ""
254
 
255
+ #: inc/class-widget.php:282
256
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
257
  msgstr ""
258
 
259
+ #: inc/class-widget.php:285
260
  msgid "Forecast Text"
261
  msgstr ""
262
 
263
+ #: inc/class-widget.php:286
264
  msgid "Display a description of the forecast, normally in sentence format."
265
  msgstr ""
266
 
267
+ #: inc/class-widget.php:289
268
  msgid "Weather Alerts &amp; Warnings"
269
  msgstr ""
270
 
271
+ #: inc/class-widget.php:290
272
+ msgid "Display Severe Weather alerts and warnings."
 
 
273
  msgstr ""
274
 
275
+ #: inc/class-widget.php:306
276
  msgid "Forecast Language"
277
  msgstr ""
278
 
279
+ #: inc/class-widget.php:317
280
  msgid "Measurements"
281
  msgstr ""
282
 
283
+ #: inc/class-widget.php:320
284
  msgid "Fahrenheit &amp; Inches"
285
  msgstr ""
286
 
287
+ #: inc/class-widget.php:323
288
  msgid "Celsius &amp; Meters"
289
  msgstr ""
290
 
languages/wunderground-pt_PT.mo ADDED
Binary file
languages/wunderground-pt_PT.po ADDED
@@ -0,0 +1,663 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # Translators:
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
+ "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: Portuguese (http://www.transifex.com/katzwebservices/wunderground/language/pt/)\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Language: pt\n"
14
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
+ "X-Poedit-Basepath: ..\n"
17
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
+ "X-Poedit-SearchPath-0: .\n"
19
+ "X-Poedit-SourceCharset: UTF-8\n"
20
+
21
+ #: inc/class-template.php:67
22
+ #, php-format
23
+ msgid "Statement as of %s"
24
+ msgstr ""
25
+
26
+ #: inc/class-template.php:68
27
+ msgid "The location could not be found."
28
+ msgstr ""
29
+
30
+ #: inc/class-template.php:69
31
+ #, php-format
32
+ msgid "%s%%"
33
+ msgstr ""
34
+
35
+ #: inc/class-template.php:70
36
+ #, php-format
37
+ msgid "%s%% Chance of Precipitation"
38
+ msgstr ""
39
+
40
+ #: inc/class-template.php:71
41
+ msgid "Currently"
42
+ msgstr ""
43
+
44
+ #: inc/class-template.php:72
45
+ #, php-format
46
+ msgid "High %d&deg;"
47
+ msgstr ""
48
+
49
+ #: inc/class-template.php:73
50
+ #, php-format
51
+ msgid "Low %d&deg;"
52
+ msgstr ""
53
+
54
+ #: inc/class-template.php:74
55
+ #, php-format
56
+ msgid "%d&deg;"
57
+ msgstr ""
58
+
59
+ #: inc/class-template.php:75
60
+ #, php-format
61
+ msgid "View the %s forecast on Wunderground.com"
62
+ msgstr ""
63
+
64
+ #: inc/class-template.php:76
65
+ msgctxt "Weather alert issued date/time"
66
+ msgid "Issued:"
67
+ msgstr ""
68
+
69
+ #: inc/class-template.php:77
70
+ msgctxt "Weather alert expires date/time"
71
+ msgid "Expires:"
72
+ msgstr ""
73
+
74
+ #: inc/class-template.php:149
75
+ msgid "Current Conditions"
76
+ msgstr ""
77
+
78
+ #: inc/class-template.php:150
79
+ msgid "Simple display of the current conditions."
80
+ msgstr ""
81
+
82
+ #: inc/class-template.php:155
83
+ msgid "Grid Forecast"
84
+ msgstr ""
85
+
86
+ #: inc/class-template.php:156
87
+ msgid "Scales to any screen size."
88
+ msgstr ""
89
+
90
+ #: inc/class-template.php:161
91
+ msgid "Details Table"
92
+ msgstr ""
93
+
94
+ #: inc/class-template.php:162
95
+ msgid ""
96
+ "Display the forecast in a table with rows. Great for in-depth forecast "
97
+ "display."
98
+ msgstr ""
99
+
100
+ #: inc/class-template.php:167
101
+ msgid "Horizontal Table"
102
+ msgstr ""
103
+
104
+ #: inc/class-template.php:168
105
+ msgid ""
106
+ "Display the forecast in a table with columns. Great for forecast summaries."
107
+ msgstr ""
108
+
109
+ #: inc/class-widget.php:43
110
+ msgid "Add a Wunderground.com forecast"
111
+ msgstr ""
112
+
113
+ #: inc/class-widget.php:48 inc/functions.php:176
114
+ msgid "Wunderground"
115
+ msgstr ""
116
+
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
+ msgid "Title"
124
+ msgstr ""
125
+
126
+ #: inc/class-widget.php:170
127
+ msgid "Leave empty to hide the widget title."
128
+ msgstr ""
129
+
130
+ #: inc/class-widget.php:176
131
+ msgid "Location"
132
+ msgstr ""
133
+
134
+ #: inc/class-widget.php:177
135
+ msgid "Locations will autoload, but you may also define custom locations."
136
+ msgstr ""
137
+
138
+ #: inc/class-widget.php:178
139
+ msgid "Enter the name of a location."
140
+ msgstr ""
141
+
142
+ #: inc/class-widget.php:185
143
+ msgid "Location Title"
144
+ msgstr ""
145
+
146
+ #: inc/class-widget.php:186
147
+ msgid "Change how the location is displayed in the widget search field."
148
+ msgstr ""
149
+
150
+ #: inc/class-widget.php:187
151
+ msgid "Leave empty to use the location name."
152
+ msgstr ""
153
+
154
+ #: inc/class-widget.php:188
155
+ msgid ""
156
+ "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
+ "set the Location Title as \"Denver\", which is simpler."
158
+ msgstr ""
159
+
160
+ #: inc/class-widget.php:197
161
+ msgid "# of Days in Forecast"
162
+ msgstr ""
163
+
164
+ #: inc/class-widget.php:203
165
+ msgid "Include Current Conditions"
166
+ msgstr ""
167
+
168
+ #: inc/class-widget.php:204
169
+ msgid "Add the current conditions to the forecast."
170
+ msgstr ""
171
+
172
+ #: inc/class-widget.php:210
173
+ msgid "Include Night Forecasts"
174
+ msgstr ""
175
+
176
+ #: inc/class-widget.php:211
177
+ msgid "This will result in double the number of forecasts shown."
178
+ msgstr ""
179
+
180
+ #: inc/class-widget.php:217
181
+ msgid "Icon Set"
182
+ msgstr ""
183
+
184
+ #: inc/class-widget.php:218
185
+ msgid ""
186
+ "Choose the look and feel of the images that will represent the weather."
187
+ msgstr ""
188
+
189
+ #: inc/class-widget.php:246
190
+ msgid "Widget Template"
191
+ msgstr ""
192
+
193
+ #: inc/class-widget.php:247
194
+ msgid "Choose how you would like to display the forecast."
195
+ msgstr ""
196
+
197
+ #: inc/class-widget.php:252
198
+ msgid "Show in Forecast"
199
+ msgstr ""
200
+
201
+ #: inc/class-widget.php:257
202
+ msgid "Search Form"
203
+ msgstr ""
204
+
205
+ #: inc/class-widget.php:258
206
+ msgid "Allow searching weather forecasts."
207
+ msgstr ""
208
+
209
+ #: inc/class-widget.php:261
210
+ msgid "Weekday Labels"
211
+ msgstr ""
212
+
213
+ #: inc/class-widget.php:262
214
+ msgid "Show the names of the days of the week."
215
+ msgstr ""
216
+
217
+ #: inc/class-widget.php:265
218
+ msgid "Date"
219
+ msgstr ""
220
+
221
+ #: inc/class-widget.php:266
222
+ msgid "Display the date numerically (\"09/14\")."
223
+ msgstr ""
224
+
225
+ #: inc/class-widget.php:269
226
+ msgid "Weather Icon"
227
+ msgstr ""
228
+
229
+ #: inc/class-widget.php:270
230
+ msgid "Icon representing the forecast conditions."
231
+ msgstr ""
232
+
233
+ #: inc/class-widget.php:273
234
+ msgid "Chance of Rain"
235
+ msgstr ""
236
+
237
+ #: inc/class-widget.php:274
238
+ msgid "Display the percent chance of rain."
239
+ msgstr ""
240
+
241
+ #: inc/class-widget.php:277
242
+ msgid "High & Low Temp"
243
+ msgstr ""
244
+
245
+ #: inc/class-widget.php:278
246
+ msgid "Show the high & low temperatures for forecast."
247
+ msgstr ""
248
+
249
+ #: inc/class-widget.php:281
250
+ msgid "Condition Title"
251
+ msgstr ""
252
+
253
+ #: inc/class-widget.php:282
254
+ msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
+ msgstr ""
256
+
257
+ #: inc/class-widget.php:285
258
+ msgid "Forecast Text"
259
+ msgstr ""
260
+
261
+ #: inc/class-widget.php:286
262
+ msgid "Display a description of the forecast, normally in sentence format."
263
+ msgstr ""
264
+
265
+ #: inc/class-widget.php:289
266
+ msgid "Weather Alerts &amp; Warnings"
267
+ msgstr ""
268
+
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
271
+ msgstr ""
272
+
273
+ #: inc/class-widget.php:306
274
+ msgid "Forecast Language"
275
+ msgstr ""
276
+
277
+ #: inc/class-widget.php:317
278
+ msgid "Measurements"
279
+ msgstr ""
280
+
281
+ #: inc/class-widget.php:320
282
+ msgid "Fahrenheit &amp; Inches"
283
+ msgstr ""
284
+
285
+ #: inc/class-widget.php:323
286
+ msgid "Celsius &amp; Meters"
287
+ msgstr ""
288
+
289
+ #: inc/functions.php:44
290
+ msgid "Weather Forecast"
291
+ msgstr ""
292
+
293
+ #: inc/functions.php:161 inc/functions.php:178
294
+ msgid "Incredible"
295
+ msgstr ""
296
+
297
+ #: inc/functions.php:162 inc/functions.php:177
298
+ msgid "Elemental"
299
+ msgstr ""
300
+
301
+ #: inc/functions.php:163 inc/functions.php:179
302
+ msgid "Helen"
303
+ msgstr ""
304
+
305
+ #: inc/functions.php:164 inc/functions.php:181
306
+ msgid "Default"
307
+ msgstr ""
308
+
309
+ #: inc/functions.php:165 inc/functions.php:182
310
+ msgid "Smiley"
311
+ msgstr ""
312
+
313
+ #: inc/functions.php:166 inc/functions.php:183
314
+ msgid "Generic"
315
+ msgstr ""
316
+
317
+ #: inc/functions.php:167 inc/functions.php:184
318
+ msgid "Old School"
319
+ msgstr ""
320
+
321
+ #: inc/functions.php:168 inc/functions.php:185
322
+ msgid "Cartoon"
323
+ msgstr ""
324
+
325
+ #: inc/functions.php:169 inc/functions.php:186
326
+ msgid "Mobile"
327
+ msgstr ""
328
+
329
+ #: inc/functions.php:170 inc/functions.php:187
330
+ msgid "Simple"
331
+ msgstr ""
332
+
333
+ #: inc/functions.php:171 inc/functions.php:188
334
+ msgid "Contemporary"
335
+ msgstr ""
336
+
337
+ #: inc/functions.php:363
338
+ msgid "Afrikaans"
339
+ msgstr ""
340
+
341
+ #: inc/functions.php:368
342
+ msgid "Albanian"
343
+ msgstr ""
344
+
345
+ #: inc/functions.php:373
346
+ msgid "Arabic"
347
+ msgstr ""
348
+
349
+ #: inc/functions.php:379
350
+ msgid "Armenian"
351
+ msgstr ""
352
+
353
+ #: inc/functions.php:384
354
+ msgid "Azerbaijani"
355
+ msgstr ""
356
+
357
+ #: inc/functions.php:389
358
+ msgid "Basque"
359
+ msgstr ""
360
+
361
+ #: inc/functions.php:394
362
+ msgid "Belarusian"
363
+ msgstr ""
364
+
365
+ #: inc/functions.php:399
366
+ msgid "Bulgarian"
367
+ msgstr ""
368
+
369
+ #: inc/functions.php:404
370
+ msgid "British English"
371
+ msgstr ""
372
+
373
+ #: inc/functions.php:409
374
+ msgid "Burmese"
375
+ msgstr ""
376
+
377
+ #: inc/functions.php:414
378
+ msgid "Catalan"
379
+ msgstr ""
380
+
381
+ #: inc/functions.php:419
382
+ msgid "Chinese - Simplified"
383
+ msgstr ""
384
+
385
+ #: inc/functions.php:424
386
+ msgid "Chinese - Traditional"
387
+ msgstr ""
388
+
389
+ #: inc/functions.php:429
390
+ msgid "Croatian"
391
+ msgstr ""
392
+
393
+ #: inc/functions.php:434
394
+ msgid "Czech"
395
+ msgstr ""
396
+
397
+ #: inc/functions.php:439
398
+ msgid "Danish"
399
+ msgstr ""
400
+
401
+ #: inc/functions.php:444
402
+ msgid "Dhivehi"
403
+ msgstr ""
404
+
405
+ #: inc/functions.php:450
406
+ msgid "Dutch"
407
+ msgstr ""
408
+
409
+ #: inc/functions.php:455
410
+ msgid "English"
411
+ msgstr ""
412
+
413
+ #: inc/functions.php:460
414
+ msgid "Esperanto"
415
+ msgstr ""
416
+
417
+ #: inc/functions.php:465
418
+ msgid "Estonian"
419
+ msgstr ""
420
+
421
+ #: inc/functions.php:470
422
+ msgid "Farsi"
423
+ msgstr ""
424
+
425
+ #: inc/functions.php:475
426
+ msgid "Finnish"
427
+ msgstr ""
428
+
429
+ #: inc/functions.php:480
430
+ msgid "French"
431
+ msgstr ""
432
+
433
+ #: inc/functions.php:485
434
+ msgid "French Canadian"
435
+ msgstr ""
436
+
437
+ #: inc/functions.php:490
438
+ msgid "Galician"
439
+ msgstr ""
440
+
441
+ #: inc/functions.php:495
442
+ msgid "German"
443
+ msgstr ""
444
+
445
+ #: inc/functions.php:500
446
+ msgid "Georgian"
447
+ msgstr ""
448
+
449
+ #: inc/functions.php:505
450
+ msgid "Greek"
451
+ msgstr ""
452
+
453
+ #: inc/functions.php:510
454
+ msgid "Gujarati"
455
+ msgstr ""
456
+
457
+ #: inc/functions.php:515
458
+ msgid "Haitian Creole"
459
+ msgstr ""
460
+
461
+ #: inc/functions.php:520
462
+ msgid "Hebrew"
463
+ msgstr ""
464
+
465
+ #: inc/functions.php:526
466
+ msgid "Hindi"
467
+ msgstr ""
468
+
469
+ #: inc/functions.php:531
470
+ msgid "Hungarian"
471
+ msgstr ""
472
+
473
+ #: inc/functions.php:536
474
+ msgid "Icelandic"
475
+ msgstr ""
476
+
477
+ #: inc/functions.php:541
478
+ msgid "Ido"
479
+ msgstr ""
480
+
481
+ #: inc/functions.php:546
482
+ msgid "Indonesian"
483
+ msgstr ""
484
+
485
+ #: inc/functions.php:551
486
+ msgid "Irish Gaelic"
487
+ msgstr ""
488
+
489
+ #: inc/functions.php:556
490
+ msgid "Italian"
491
+ msgstr ""
492
+
493
+ #: inc/functions.php:561
494
+ msgid "Japanese"
495
+ msgstr ""
496
+
497
+ #: inc/functions.php:566
498
+ msgid "Javanese"
499
+ msgstr ""
500
+
501
+ #: inc/functions.php:571
502
+ msgid "Khmer"
503
+ msgstr ""
504
+
505
+ #: inc/functions.php:576
506
+ msgid "Korean"
507
+ msgstr ""
508
+
509
+ #: inc/functions.php:581
510
+ msgid "Kurdish"
511
+ msgstr ""
512
+
513
+ #: inc/functions.php:587
514
+ msgid "Latin"
515
+ msgstr ""
516
+
517
+ #: inc/functions.php:592
518
+ msgid "Latvian"
519
+ msgstr ""
520
+
521
+ #: inc/functions.php:597
522
+ msgid "Lithuanian"
523
+ msgstr ""
524
+
525
+ #: inc/functions.php:602
526
+ msgid "Low German"
527
+ msgstr ""
528
+
529
+ #: inc/functions.php:607
530
+ msgid "Macedonian"
531
+ msgstr ""
532
+
533
+ #: inc/functions.php:612
534
+ msgid "Maltese"
535
+ msgstr ""
536
+
537
+ #: inc/functions.php:617
538
+ msgid "Mandinka"
539
+ msgstr ""
540
+
541
+ #: inc/functions.php:622
542
+ msgid "Maori"
543
+ msgstr ""
544
+
545
+ #: inc/functions.php:627
546
+ msgid "Marathi"
547
+ msgstr ""
548
+
549
+ #: inc/functions.php:632
550
+ msgid "Mongolian"
551
+ msgstr ""
552
+
553
+ #: inc/functions.php:637
554
+ msgid "Norwegian"
555
+ msgstr ""
556
+
557
+ #: inc/functions.php:642
558
+ msgid "Occitan"
559
+ msgstr ""
560
+
561
+ #: inc/functions.php:647
562
+ msgid "Pashto"
563
+ msgstr ""
564
+
565
+ #: inc/functions.php:653
566
+ msgid "Plautdietsch"
567
+ msgstr ""
568
+
569
+ #: inc/functions.php:658
570
+ msgid "Polish"
571
+ msgstr ""
572
+
573
+ #: inc/functions.php:663
574
+ msgid "Portuguese"
575
+ msgstr ""
576
+
577
+ #: inc/functions.php:668
578
+ msgid "Punjabi"
579
+ msgstr ""
580
+
581
+ #: inc/functions.php:674
582
+ msgid "Romanian"
583
+ msgstr ""
584
+
585
+ #: inc/functions.php:679
586
+ msgid "Russian"
587
+ msgstr ""
588
+
589
+ #: inc/functions.php:684
590
+ msgid "Serbian"
591
+ msgstr ""
592
+
593
+ #: inc/functions.php:689
594
+ msgid "Slovak"
595
+ msgstr ""
596
+
597
+ #: inc/functions.php:694
598
+ msgid "Slovenian"
599
+ msgstr ""
600
+
601
+ #: inc/functions.php:699
602
+ msgid "Spanish"
603
+ msgstr ""
604
+
605
+ #: inc/functions.php:704
606
+ msgid "Swahili"
607
+ msgstr ""
608
+
609
+ #: inc/functions.php:709
610
+ msgid "Swedish"
611
+ msgstr ""
612
+
613
+ #: inc/functions.php:714
614
+ msgid "Swiss"
615
+ msgstr ""
616
+
617
+ #: inc/functions.php:719
618
+ msgid "Tagalog"
619
+ msgstr ""
620
+
621
+ #: inc/functions.php:724
622
+ msgid "Tatarish"
623
+ msgstr ""
624
+
625
+ #: inc/functions.php:729
626
+ msgid "Thai"
627
+ msgstr ""
628
+
629
+ #: inc/functions.php:734
630
+ msgid "Turkish"
631
+ msgstr ""
632
+
633
+ #: inc/functions.php:739
634
+ msgid "Turkmen"
635
+ msgstr ""
636
+
637
+ #: inc/functions.php:744
638
+ msgid "Ukrainian"
639
+ msgstr ""
640
+
641
+ #: inc/functions.php:749
642
+ msgid "Uzbek"
643
+ msgstr ""
644
+
645
+ #: inc/functions.php:754
646
+ msgid "Vietnamese"
647
+ msgstr ""
648
+
649
+ #: inc/functions.php:759
650
+ msgid "Welsh"
651
+ msgstr ""
652
+
653
+ #: inc/functions.php:764
654
+ msgid "Wolof"
655
+ msgstr ""
656
+
657
+ #: inc/functions.php:769
658
+ msgid "Yiddish - transliterated"
659
+ msgstr ""
660
+
661
+ #: inc/functions.php:774
662
+ msgid "Yiddish - unicode"
663
+ msgstr ""
languages/wunderground-ro_RO.mo CHANGED
Binary file
languages/wunderground-ro_RO.po CHANGED
@@ -3,16 +3,16 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
7
- "PO-Revision-Date: 2014-12-04 20:12+0000\n"
8
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
- "Language-Team: Romanian (Romania) (http://www.transifex.com/projects/p/wunderground/language/ro_RO/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: ro_RO\n"
14
  "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
15
- "X-Generator: Poedit 1.7beta3\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
@@ -114,172 +114,175 @@ msgstr ""
114
  msgid "Wunderground"
115
  msgstr "Wunderground"
116
 
117
- #: inc/class-widget.php:152
 
 
 
 
 
118
  msgid "Title"
119
  msgstr "Titlu"
120
 
121
- #: inc/class-widget.php:153
122
  msgid "Leave empty to hide the widget title."
123
  msgstr "Lăsați necompletat pentru a ascunde titlul mini-aplicației widget."
124
 
125
- #: inc/class-widget.php:159
126
  msgid "Location"
127
  msgstr "Locație"
128
 
129
- #: inc/class-widget.php:160
130
  msgid "Locations will autoload, but you may also define custom locations."
131
  msgstr "Locațiile se vor încărca automat, dar poate de asemenea puteți defini locații personalizate."
132
 
133
- #: inc/class-widget.php:161
134
  msgid "Enter the name of a location."
135
  msgstr "Introduceți numele unei locații."
136
 
137
- #: inc/class-widget.php:168
138
  msgid "Location Title"
139
  msgstr ""
140
 
141
- #: inc/class-widget.php:169
142
  msgid "Change how the location is displayed in the widget search field."
143
  msgstr ""
144
 
145
- #: inc/class-widget.php:170
146
  msgid "Leave empty to use the location name."
147
  msgstr ""
148
 
149
- #: inc/class-widget.php:171
150
  msgid ""
151
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
152
  "set the Location Title as \"Denver\", which is simpler."
153
  msgstr ""
154
 
155
- #: inc/class-widget.php:180
156
  msgid "# of Days in Forecast"
157
  msgstr "# de Zile de Prognoză"
158
 
159
- #: inc/class-widget.php:186
160
  msgid "Include Current Conditions"
161
  msgstr ""
162
 
163
- #: inc/class-widget.php:187
164
  msgid "Add the current conditions to the forecast."
165
  msgstr ""
166
 
167
- #: inc/class-widget.php:193
168
  msgid "Include Night Forecasts"
169
  msgstr ""
170
 
171
- #: inc/class-widget.php:194
172
  msgid "This will result in double the number of forecasts shown."
173
  msgstr ""
174
 
175
- #: inc/class-widget.php:200
176
  msgid "Icon Set"
177
  msgstr "Seturi de Pictograme"
178
 
179
- #: inc/class-widget.php:201
180
  msgid ""
181
  "Choose the look and feel of the images that will represent the weather."
182
  msgstr "Alegeți aspectul şi senzația ale imaginilor ce vor reprezenta vremea."
183
 
184
- #: inc/class-widget.php:229
185
  msgid "Widget Template"
186
  msgstr ""
187
 
188
- #: inc/class-widget.php:230
189
  msgid "Choose how you would like to display the forecast."
190
  msgstr ""
191
 
192
- #: inc/class-widget.php:235
193
  msgid "Show in Forecast"
194
  msgstr "Afișare în Prognoză"
195
 
196
- #: inc/class-widget.php:240
197
  msgid "Search Form"
198
  msgstr ""
199
 
200
- #: inc/class-widget.php:241
201
  msgid "Allow searching weather forecasts."
202
  msgstr ""
203
 
204
- #: inc/class-widget.php:244
205
  msgid "Weekday Labels"
206
  msgstr ""
207
 
208
- #: inc/class-widget.php:245
209
  msgid "Show the names of the days of the week."
210
  msgstr ""
211
 
212
- #: inc/class-widget.php:248
213
  msgid "Date"
214
  msgstr "Data"
215
 
216
- #: inc/class-widget.php:249
217
  msgid "Display the date numerically (\"09/14\")."
218
  msgstr ""
219
 
220
- #: inc/class-widget.php:252
221
  msgid "Weather Icon"
222
  msgstr "Pictogramă Meteo"
223
 
224
- #: inc/class-widget.php:253
225
  msgid "Icon representing the forecast conditions."
226
  msgstr ""
227
 
228
- #: inc/class-widget.php:256
229
  msgid "Chance of Rain"
230
  msgstr "Șanse de Ploaie"
231
 
232
- #: inc/class-widget.php:257
233
  msgid "Display the percent chance of rain."
234
  msgstr ""
235
 
236
- #: inc/class-widget.php:260
237
  msgid "High & Low Temp"
238
  msgstr ""
239
 
240
- #: inc/class-widget.php:261
241
  msgid "Show the high & low temperatures for forecast."
242
  msgstr ""
243
 
244
- #: inc/class-widget.php:264
245
  msgid "Condition Title"
246
  msgstr "Titlul Stării "
247
 
248
- #: inc/class-widget.php:265
249
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
250
  msgstr ""
251
 
252
- #: inc/class-widget.php:268
253
  msgid "Forecast Text"
254
  msgstr "Text Prognoză"
255
 
256
- #: inc/class-widget.php:269
257
  msgid "Display a description of the forecast, normally in sentence format."
258
  msgstr ""
259
 
260
- #: inc/class-widget.php:272
261
  msgid "Weather Alerts &amp; Warnings"
262
  msgstr "Alerte Meteo &amp; Avertismente"
263
 
264
- #: inc/class-widget.php:273
265
- msgid ""
266
- "This functionality is currently not working; we are working with "
267
- "Wunderground.com to restore it."
268
  msgstr ""
269
 
270
- #: inc/class-widget.php:289
271
  msgid "Forecast Language"
272
  msgstr "Limbă Prognoză"
273
 
274
- #: inc/class-widget.php:300
275
  msgid "Measurements"
276
  msgstr "Unități de Măsură"
277
 
278
- #: inc/class-widget.php:303
279
  msgid "Fahrenheit &amp; Inches"
280
  msgstr "Fahrenheit &amp; Inch"
281
 
282
- #: inc/class-widget.php:306
283
  msgid "Celsius &amp; Meters"
284
  msgstr "Celsius &amp; Metri"
285
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: Romanian (Romania) (http://www.transifex.com/katzwebservices/wunderground/language/ro_RO/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: ro_RO\n"
14
  "Plural-Forms: nplurals=3; plural=(n==1?0:(((n%100>19)||((n%100==0)&&(n!=0)))?2:1));\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
114
  msgid "Wunderground"
115
  msgstr "Wunderground"
116
 
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
  msgid "Title"
124
  msgstr "Titlu"
125
 
126
+ #: inc/class-widget.php:170
127
  msgid "Leave empty to hide the widget title."
128
  msgstr "Lăsați necompletat pentru a ascunde titlul mini-aplicației widget."
129
 
130
+ #: inc/class-widget.php:176
131
  msgid "Location"
132
  msgstr "Locație"
133
 
134
+ #: inc/class-widget.php:177
135
  msgid "Locations will autoload, but you may also define custom locations."
136
  msgstr "Locațiile se vor încărca automat, dar poate de asemenea puteți defini locații personalizate."
137
 
138
+ #: inc/class-widget.php:178
139
  msgid "Enter the name of a location."
140
  msgstr "Introduceți numele unei locații."
141
 
142
+ #: inc/class-widget.php:185
143
  msgid "Location Title"
144
  msgstr ""
145
 
146
+ #: inc/class-widget.php:186
147
  msgid "Change how the location is displayed in the widget search field."
148
  msgstr ""
149
 
150
+ #: inc/class-widget.php:187
151
  msgid "Leave empty to use the location name."
152
  msgstr ""
153
 
154
+ #: inc/class-widget.php:188
155
  msgid ""
156
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
  "set the Location Title as \"Denver\", which is simpler."
158
  msgstr ""
159
 
160
+ #: inc/class-widget.php:197
161
  msgid "# of Days in Forecast"
162
  msgstr "# de Zile de Prognoză"
163
 
164
+ #: inc/class-widget.php:203
165
  msgid "Include Current Conditions"
166
  msgstr ""
167
 
168
+ #: inc/class-widget.php:204
169
  msgid "Add the current conditions to the forecast."
170
  msgstr ""
171
 
172
+ #: inc/class-widget.php:210
173
  msgid "Include Night Forecasts"
174
  msgstr ""
175
 
176
+ #: inc/class-widget.php:211
177
  msgid "This will result in double the number of forecasts shown."
178
  msgstr ""
179
 
180
+ #: inc/class-widget.php:217
181
  msgid "Icon Set"
182
  msgstr "Seturi de Pictograme"
183
 
184
+ #: inc/class-widget.php:218
185
  msgid ""
186
  "Choose the look and feel of the images that will represent the weather."
187
  msgstr "Alegeți aspectul şi senzația ale imaginilor ce vor reprezenta vremea."
188
 
189
+ #: inc/class-widget.php:246
190
  msgid "Widget Template"
191
  msgstr ""
192
 
193
+ #: inc/class-widget.php:247
194
  msgid "Choose how you would like to display the forecast."
195
  msgstr ""
196
 
197
+ #: inc/class-widget.php:252
198
  msgid "Show in Forecast"
199
  msgstr "Afișare în Prognoză"
200
 
201
+ #: inc/class-widget.php:257
202
  msgid "Search Form"
203
  msgstr ""
204
 
205
+ #: inc/class-widget.php:258
206
  msgid "Allow searching weather forecasts."
207
  msgstr ""
208
 
209
+ #: inc/class-widget.php:261
210
  msgid "Weekday Labels"
211
  msgstr ""
212
 
213
+ #: inc/class-widget.php:262
214
  msgid "Show the names of the days of the week."
215
  msgstr ""
216
 
217
+ #: inc/class-widget.php:265
218
  msgid "Date"
219
  msgstr "Data"
220
 
221
+ #: inc/class-widget.php:266
222
  msgid "Display the date numerically (\"09/14\")."
223
  msgstr ""
224
 
225
+ #: inc/class-widget.php:269
226
  msgid "Weather Icon"
227
  msgstr "Pictogramă Meteo"
228
 
229
+ #: inc/class-widget.php:270
230
  msgid "Icon representing the forecast conditions."
231
  msgstr ""
232
 
233
+ #: inc/class-widget.php:273
234
  msgid "Chance of Rain"
235
  msgstr "Șanse de Ploaie"
236
 
237
+ #: inc/class-widget.php:274
238
  msgid "Display the percent chance of rain."
239
  msgstr ""
240
 
241
+ #: inc/class-widget.php:277
242
  msgid "High & Low Temp"
243
  msgstr ""
244
 
245
+ #: inc/class-widget.php:278
246
  msgid "Show the high & low temperatures for forecast."
247
  msgstr ""
248
 
249
+ #: inc/class-widget.php:281
250
  msgid "Condition Title"
251
  msgstr "Titlul Stării "
252
 
253
+ #: inc/class-widget.php:282
254
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
  msgstr ""
256
 
257
+ #: inc/class-widget.php:285
258
  msgid "Forecast Text"
259
  msgstr "Text Prognoză"
260
 
261
+ #: inc/class-widget.php:286
262
  msgid "Display a description of the forecast, normally in sentence format."
263
  msgstr ""
264
 
265
+ #: inc/class-widget.php:289
266
  msgid "Weather Alerts &amp; Warnings"
267
  msgstr "Alerte Meteo &amp; Avertismente"
268
 
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
 
 
271
  msgstr ""
272
 
273
+ #: inc/class-widget.php:306
274
  msgid "Forecast Language"
275
  msgstr "Limbă Prognoză"
276
 
277
+ #: inc/class-widget.php:317
278
  msgid "Measurements"
279
  msgstr "Unități de Măsură"
280
 
281
+ #: inc/class-widget.php:320
282
  msgid "Fahrenheit &amp; Inches"
283
  msgstr "Fahrenheit &amp; Inch"
284
 
285
+ #: inc/class-widget.php:323
286
  msgid "Celsius &amp; Meters"
287
  msgstr "Celsius &amp; Metri"
288
 
languages/wunderground-sl.mo CHANGED
Binary file
languages/wunderground-sl.po CHANGED
@@ -3,16 +3,16 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
7
- "PO-Revision-Date: 2014-06-06 15:48+0000\n"
8
- "Last-Translator: Katz Web Services, Inc. <support@katz.co>\n"
9
- "Language-Team: Slovenian (http://www.transifex.com/projects/p/wunderground/language/sl/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: sl\n"
14
  "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
15
- "X-Generator: Poedit 1.7beta3\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
@@ -114,172 +114,175 @@ msgstr ""
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
- #: inc/class-widget.php:152
 
 
 
 
 
118
  msgid "Title"
119
  msgstr ""
120
 
121
- #: inc/class-widget.php:153
122
  msgid "Leave empty to hide the widget title."
123
  msgstr ""
124
 
125
- #: inc/class-widget.php:159
126
  msgid "Location"
127
  msgstr ""
128
 
129
- #: inc/class-widget.php:160
130
  msgid "Locations will autoload, but you may also define custom locations."
131
  msgstr ""
132
 
133
- #: inc/class-widget.php:161
134
  msgid "Enter the name of a location."
135
  msgstr ""
136
 
137
- #: inc/class-widget.php:168
138
  msgid "Location Title"
139
  msgstr ""
140
 
141
- #: inc/class-widget.php:169
142
  msgid "Change how the location is displayed in the widget search field."
143
  msgstr ""
144
 
145
- #: inc/class-widget.php:170
146
  msgid "Leave empty to use the location name."
147
  msgstr ""
148
 
149
- #: inc/class-widget.php:171
150
  msgid ""
151
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
152
  "set the Location Title as \"Denver\", which is simpler."
153
  msgstr ""
154
 
155
- #: inc/class-widget.php:180
156
  msgid "# of Days in Forecast"
157
  msgstr ""
158
 
159
- #: inc/class-widget.php:186
160
  msgid "Include Current Conditions"
161
  msgstr ""
162
 
163
- #: inc/class-widget.php:187
164
  msgid "Add the current conditions to the forecast."
165
  msgstr ""
166
 
167
- #: inc/class-widget.php:193
168
  msgid "Include Night Forecasts"
169
  msgstr ""
170
 
171
- #: inc/class-widget.php:194
172
  msgid "This will result in double the number of forecasts shown."
173
  msgstr ""
174
 
175
- #: inc/class-widget.php:200
176
  msgid "Icon Set"
177
  msgstr ""
178
 
179
- #: inc/class-widget.php:201
180
  msgid ""
181
  "Choose the look and feel of the images that will represent the weather."
182
  msgstr ""
183
 
184
- #: inc/class-widget.php:229
185
  msgid "Widget Template"
186
  msgstr ""
187
 
188
- #: inc/class-widget.php:230
189
  msgid "Choose how you would like to display the forecast."
190
  msgstr ""
191
 
192
- #: inc/class-widget.php:235
193
  msgid "Show in Forecast"
194
  msgstr ""
195
 
196
- #: inc/class-widget.php:240
197
  msgid "Search Form"
198
  msgstr ""
199
 
200
- #: inc/class-widget.php:241
201
  msgid "Allow searching weather forecasts."
202
  msgstr ""
203
 
204
- #: inc/class-widget.php:244
205
  msgid "Weekday Labels"
206
  msgstr ""
207
 
208
- #: inc/class-widget.php:245
209
  msgid "Show the names of the days of the week."
210
  msgstr ""
211
 
212
- #: inc/class-widget.php:248
213
  msgid "Date"
214
  msgstr ""
215
 
216
- #: inc/class-widget.php:249
217
  msgid "Display the date numerically (\"09/14\")."
218
  msgstr ""
219
 
220
- #: inc/class-widget.php:252
221
  msgid "Weather Icon"
222
  msgstr ""
223
 
224
- #: inc/class-widget.php:253
225
  msgid "Icon representing the forecast conditions."
226
  msgstr ""
227
 
228
- #: inc/class-widget.php:256
229
  msgid "Chance of Rain"
230
  msgstr ""
231
 
232
- #: inc/class-widget.php:257
233
  msgid "Display the percent chance of rain."
234
  msgstr ""
235
 
236
- #: inc/class-widget.php:260
237
  msgid "High & Low Temp"
238
  msgstr ""
239
 
240
- #: inc/class-widget.php:261
241
  msgid "Show the high & low temperatures for forecast."
242
  msgstr ""
243
 
244
- #: inc/class-widget.php:264
245
  msgid "Condition Title"
246
  msgstr ""
247
 
248
- #: inc/class-widget.php:265
249
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
250
  msgstr ""
251
 
252
- #: inc/class-widget.php:268
253
  msgid "Forecast Text"
254
  msgstr ""
255
 
256
- #: inc/class-widget.php:269
257
  msgid "Display a description of the forecast, normally in sentence format."
258
  msgstr ""
259
 
260
- #: inc/class-widget.php:272
261
  msgid "Weather Alerts &amp; Warnings"
262
  msgstr ""
263
 
264
- #: inc/class-widget.php:273
265
- msgid ""
266
- "This functionality is currently not working; we are working with "
267
- "Wunderground.com to restore it."
268
  msgstr ""
269
 
270
- #: inc/class-widget.php:289
271
  msgid "Forecast Language"
272
  msgstr ""
273
 
274
- #: inc/class-widget.php:300
275
  msgid "Measurements"
276
  msgstr ""
277
 
278
- #: inc/class-widget.php:303
279
  msgid "Fahrenheit &amp; Inches"
280
  msgstr ""
281
 
282
- #: inc/class-widget.php:306
283
  msgid "Celsius &amp; Meters"
284
  msgstr ""
285
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
+ "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: Slovenian (http://www.transifex.com/katzwebservices/wunderground/language/sl/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: sl\n"
14
  "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
  msgid "Title"
124
  msgstr ""
125
 
126
+ #: inc/class-widget.php:170
127
  msgid "Leave empty to hide the widget title."
128
  msgstr ""
129
 
130
+ #: inc/class-widget.php:176
131
  msgid "Location"
132
  msgstr ""
133
 
134
+ #: inc/class-widget.php:177
135
  msgid "Locations will autoload, but you may also define custom locations."
136
  msgstr ""
137
 
138
+ #: inc/class-widget.php:178
139
  msgid "Enter the name of a location."
140
  msgstr ""
141
 
142
+ #: inc/class-widget.php:185
143
  msgid "Location Title"
144
  msgstr ""
145
 
146
+ #: inc/class-widget.php:186
147
  msgid "Change how the location is displayed in the widget search field."
148
  msgstr ""
149
 
150
+ #: inc/class-widget.php:187
151
  msgid "Leave empty to use the location name."
152
  msgstr ""
153
 
154
+ #: inc/class-widget.php:188
155
  msgid ""
156
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
  "set the Location Title as \"Denver\", which is simpler."
158
  msgstr ""
159
 
160
+ #: inc/class-widget.php:197
161
  msgid "# of Days in Forecast"
162
  msgstr ""
163
 
164
+ #: inc/class-widget.php:203
165
  msgid "Include Current Conditions"
166
  msgstr ""
167
 
168
+ #: inc/class-widget.php:204
169
  msgid "Add the current conditions to the forecast."
170
  msgstr ""
171
 
172
+ #: inc/class-widget.php:210
173
  msgid "Include Night Forecasts"
174
  msgstr ""
175
 
176
+ #: inc/class-widget.php:211
177
  msgid "This will result in double the number of forecasts shown."
178
  msgstr ""
179
 
180
+ #: inc/class-widget.php:217
181
  msgid "Icon Set"
182
  msgstr ""
183
 
184
+ #: inc/class-widget.php:218
185
  msgid ""
186
  "Choose the look and feel of the images that will represent the weather."
187
  msgstr ""
188
 
189
+ #: inc/class-widget.php:246
190
  msgid "Widget Template"
191
  msgstr ""
192
 
193
+ #: inc/class-widget.php:247
194
  msgid "Choose how you would like to display the forecast."
195
  msgstr ""
196
 
197
+ #: inc/class-widget.php:252
198
  msgid "Show in Forecast"
199
  msgstr ""
200
 
201
+ #: inc/class-widget.php:257
202
  msgid "Search Form"
203
  msgstr ""
204
 
205
+ #: inc/class-widget.php:258
206
  msgid "Allow searching weather forecasts."
207
  msgstr ""
208
 
209
+ #: inc/class-widget.php:261
210
  msgid "Weekday Labels"
211
  msgstr ""
212
 
213
+ #: inc/class-widget.php:262
214
  msgid "Show the names of the days of the week."
215
  msgstr ""
216
 
217
+ #: inc/class-widget.php:265
218
  msgid "Date"
219
  msgstr ""
220
 
221
+ #: inc/class-widget.php:266
222
  msgid "Display the date numerically (\"09/14\")."
223
  msgstr ""
224
 
225
+ #: inc/class-widget.php:269
226
  msgid "Weather Icon"
227
  msgstr ""
228
 
229
+ #: inc/class-widget.php:270
230
  msgid "Icon representing the forecast conditions."
231
  msgstr ""
232
 
233
+ #: inc/class-widget.php:273
234
  msgid "Chance of Rain"
235
  msgstr ""
236
 
237
+ #: inc/class-widget.php:274
238
  msgid "Display the percent chance of rain."
239
  msgstr ""
240
 
241
+ #: inc/class-widget.php:277
242
  msgid "High & Low Temp"
243
  msgstr ""
244
 
245
+ #: inc/class-widget.php:278
246
  msgid "Show the high & low temperatures for forecast."
247
  msgstr ""
248
 
249
+ #: inc/class-widget.php:281
250
  msgid "Condition Title"
251
  msgstr ""
252
 
253
+ #: inc/class-widget.php:282
254
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
  msgstr ""
256
 
257
+ #: inc/class-widget.php:285
258
  msgid "Forecast Text"
259
  msgstr ""
260
 
261
+ #: inc/class-widget.php:286
262
  msgid "Display a description of the forecast, normally in sentence format."
263
  msgstr ""
264
 
265
+ #: inc/class-widget.php:289
266
  msgid "Weather Alerts &amp; Warnings"
267
  msgstr ""
268
 
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
 
 
271
  msgstr ""
272
 
273
+ #: inc/class-widget.php:306
274
  msgid "Forecast Language"
275
  msgstr ""
276
 
277
+ #: inc/class-widget.php:317
278
  msgid "Measurements"
279
  msgstr ""
280
 
281
+ #: inc/class-widget.php:320
282
  msgid "Fahrenheit &amp; Inches"
283
  msgstr ""
284
 
285
+ #: inc/class-widget.php:323
286
  msgid "Celsius &amp; Meters"
287
  msgstr ""
288
 
languages/wunderground-sl_SI.mo CHANGED
Binary file
languages/wunderground-sl_SI.po CHANGED
@@ -4,16 +4,16 @@
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Wunderground\n"
7
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
8
- "PO-Revision-Date: 2014-12-15 18:31+0000\n"
9
- "Last-Translator: Aleš Hočevar <ales.hocevar.1@gmail.com>\n"
10
- "Language-Team: Slovenian (Slovenia) (http://www.transifex.com/projects/p/wunderground/language/sl_SI/)\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "Language: sl_SI\n"
15
  "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
16
- "X-Generator: Poedit 1.7beta3\n"
17
  "X-Poedit-Basepath: ..\n"
18
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
19
  "X-Poedit-SearchPath-0: .\n"
@@ -115,172 +115,175 @@ msgstr "Dodaj Wunderground.com vremensko napoved"
115
  msgid "Wunderground"
116
  msgstr "Wunderground"
117
 
118
- #: inc/class-widget.php:152
 
 
 
 
 
119
  msgid "Title"
120
  msgstr "Naslov"
121
 
122
- #: inc/class-widget.php:153
123
  msgid "Leave empty to hide the widget title."
124
  msgstr "Pusti prazno, če želite skriti gradnikov naslov"
125
 
126
- #: inc/class-widget.php:159
127
  msgid "Location"
128
  msgstr "Lokacija"
129
 
130
- #: inc/class-widget.php:160
131
  msgid "Locations will autoload, but you may also define custom locations."
132
  msgstr "Lokacija se bo naložila sama. Lahko tudi sami definirate poljubno lokacijo."
133
 
134
- #: inc/class-widget.php:161
135
  msgid "Enter the name of a location."
136
  msgstr "Vnesi ime lokacija"
137
 
138
- #: inc/class-widget.php:168
139
  msgid "Location Title"
140
  msgstr "Naslov lokacija"
141
 
142
- #: inc/class-widget.php:169
143
  msgid "Change how the location is displayed in the widget search field."
144
  msgstr ""
145
 
146
- #: inc/class-widget.php:170
147
  msgid "Leave empty to use the location name."
148
  msgstr ""
149
 
150
- #: inc/class-widget.php:171
151
  msgid ""
152
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
153
  "set the Location Title as \"Denver\", which is simpler."
154
  msgstr ""
155
 
156
- #: inc/class-widget.php:180
157
  msgid "# of Days in Forecast"
158
  msgstr "število dni vremenske napovedi"
159
 
160
- #: inc/class-widget.php:186
161
  msgid "Include Current Conditions"
162
  msgstr "Dodaj trenutne razmere"
163
 
164
- #: inc/class-widget.php:187
165
  msgid "Add the current conditions to the forecast."
166
  msgstr ""
167
 
168
- #: inc/class-widget.php:193
169
  msgid "Include Night Forecasts"
170
  msgstr "Dodaj nočno napoved"
171
 
172
- #: inc/class-widget.php:194
173
  msgid "This will result in double the number of forecasts shown."
174
  msgstr ""
175
 
176
- #: inc/class-widget.php:200
177
  msgid "Icon Set"
178
  msgstr ""
179
 
180
- #: inc/class-widget.php:201
181
  msgid ""
182
  "Choose the look and feel of the images that will represent the weather."
183
  msgstr ""
184
 
185
- #: inc/class-widget.php:229
186
  msgid "Widget Template"
187
  msgstr ""
188
 
189
- #: inc/class-widget.php:230
190
  msgid "Choose how you would like to display the forecast."
191
  msgstr ""
192
 
193
- #: inc/class-widget.php:235
194
  msgid "Show in Forecast"
195
  msgstr "Pokaži v napovedi"
196
 
197
- #: inc/class-widget.php:240
198
  msgid "Search Form"
199
  msgstr "Iskalno polje"
200
 
201
- #: inc/class-widget.php:241
202
  msgid "Allow searching weather forecasts."
203
  msgstr ""
204
 
205
- #: inc/class-widget.php:244
206
  msgid "Weekday Labels"
207
  msgstr ""
208
 
209
- #: inc/class-widget.php:245
210
  msgid "Show the names of the days of the week."
211
  msgstr "Pokaži imena dni v tednu"
212
 
213
- #: inc/class-widget.php:248
214
  msgid "Date"
215
  msgstr "Datum"
216
 
217
- #: inc/class-widget.php:249
218
  msgid "Display the date numerically (\"09/14\")."
219
  msgstr "Prikaži datum numerično (\"14.09\")"
220
 
221
- #: inc/class-widget.php:252
222
  msgid "Weather Icon"
223
  msgstr ""
224
 
225
- #: inc/class-widget.php:253
226
  msgid "Icon representing the forecast conditions."
227
  msgstr ""
228
 
229
- #: inc/class-widget.php:256
230
  msgid "Chance of Rain"
231
  msgstr "Možnost dežja"
232
 
233
- #: inc/class-widget.php:257
234
  msgid "Display the percent chance of rain."
235
  msgstr "Prikaži % možnost dežja"
236
 
237
- #: inc/class-widget.php:260
238
  msgid "High & Low Temp"
239
  msgstr "Dnevne in jutranje temperature"
240
 
241
- #: inc/class-widget.php:261
242
  msgid "Show the high & low temperatures for forecast."
243
  msgstr ""
244
 
245
- #: inc/class-widget.php:264
246
  msgid "Condition Title"
247
  msgstr ""
248
 
249
- #: inc/class-widget.php:265
250
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
251
  msgstr ""
252
 
253
- #: inc/class-widget.php:268
254
  msgid "Forecast Text"
255
  msgstr ""
256
 
257
- #: inc/class-widget.php:269
258
  msgid "Display a description of the forecast, normally in sentence format."
259
  msgstr ""
260
 
261
- #: inc/class-widget.php:272
262
  msgid "Weather Alerts &amp; Warnings"
263
  msgstr ""
264
 
265
- #: inc/class-widget.php:273
266
- msgid ""
267
- "This functionality is currently not working; we are working with "
268
- "Wunderground.com to restore it."
269
  msgstr ""
270
 
271
- #: inc/class-widget.php:289
272
  msgid "Forecast Language"
273
  msgstr "Jezik"
274
 
275
- #: inc/class-widget.php:300
276
  msgid "Measurements"
277
  msgstr "Merske enote"
278
 
279
- #: inc/class-widget.php:303
280
  msgid "Fahrenheit &amp; Inches"
281
  msgstr "Fahrenheit &amp; Inches"
282
 
283
- #: inc/class-widget.php:306
284
  msgid "Celsius &amp; Meters"
285
  msgstr "Stopinje celzija &amp; metri"
286
 
4
  msgid ""
5
  msgstr ""
6
  "Project-Id-Version: Wunderground\n"
7
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
8
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
9
+ "Last-Translator: Zachary Katz <zack@katz.co>\n"
10
+ "Language-Team: Slovenian (Slovenia) (http://www.transifex.com/katzwebservices/wunderground/language/sl_SI/)\n"
11
  "MIME-Version: 1.0\n"
12
  "Content-Type: text/plain; charset=UTF-8\n"
13
  "Content-Transfer-Encoding: 8bit\n"
14
  "Language: sl_SI\n"
15
  "Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n%100==4 ? 2 : 3);\n"
16
+ "X-Generator: Poedit 1.7.1\n"
17
  "X-Poedit-Basepath: ..\n"
18
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
19
  "X-Poedit-SearchPath-0: .\n"
115
  msgid "Wunderground"
116
  msgstr "Wunderground"
117
 
118
+ #: inc/class-widget.php:132
119
+ #, php-format
120
+ msgid "There was an error fetching the forecast: %s"
121
+ msgstr ""
122
+
123
+ #: inc/class-widget.php:169
124
  msgid "Title"
125
  msgstr "Naslov"
126
 
127
+ #: inc/class-widget.php:170
128
  msgid "Leave empty to hide the widget title."
129
  msgstr "Pusti prazno, če želite skriti gradnikov naslov"
130
 
131
+ #: inc/class-widget.php:176
132
  msgid "Location"
133
  msgstr "Lokacija"
134
 
135
+ #: inc/class-widget.php:177
136
  msgid "Locations will autoload, but you may also define custom locations."
137
  msgstr "Lokacija se bo naložila sama. Lahko tudi sami definirate poljubno lokacijo."
138
 
139
+ #: inc/class-widget.php:178
140
  msgid "Enter the name of a location."
141
  msgstr "Vnesi ime lokacija"
142
 
143
+ #: inc/class-widget.php:185
144
  msgid "Location Title"
145
  msgstr "Naslov lokacija"
146
 
147
+ #: inc/class-widget.php:186
148
  msgid "Change how the location is displayed in the widget search field."
149
  msgstr ""
150
 
151
+ #: inc/class-widget.php:187
152
  msgid "Leave empty to use the location name."
153
  msgstr ""
154
 
155
+ #: inc/class-widget.php:188
156
  msgid ""
157
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
158
  "set the Location Title as \"Denver\", which is simpler."
159
  msgstr ""
160
 
161
+ #: inc/class-widget.php:197
162
  msgid "# of Days in Forecast"
163
  msgstr "število dni vremenske napovedi"
164
 
165
+ #: inc/class-widget.php:203
166
  msgid "Include Current Conditions"
167
  msgstr "Dodaj trenutne razmere"
168
 
169
+ #: inc/class-widget.php:204
170
  msgid "Add the current conditions to the forecast."
171
  msgstr ""
172
 
173
+ #: inc/class-widget.php:210
174
  msgid "Include Night Forecasts"
175
  msgstr "Dodaj nočno napoved"
176
 
177
+ #: inc/class-widget.php:211
178
  msgid "This will result in double the number of forecasts shown."
179
  msgstr ""
180
 
181
+ #: inc/class-widget.php:217
182
  msgid "Icon Set"
183
  msgstr ""
184
 
185
+ #: inc/class-widget.php:218
186
  msgid ""
187
  "Choose the look and feel of the images that will represent the weather."
188
  msgstr ""
189
 
190
+ #: inc/class-widget.php:246
191
  msgid "Widget Template"
192
  msgstr ""
193
 
194
+ #: inc/class-widget.php:247
195
  msgid "Choose how you would like to display the forecast."
196
  msgstr ""
197
 
198
+ #: inc/class-widget.php:252
199
  msgid "Show in Forecast"
200
  msgstr "Pokaži v napovedi"
201
 
202
+ #: inc/class-widget.php:257
203
  msgid "Search Form"
204
  msgstr "Iskalno polje"
205
 
206
+ #: inc/class-widget.php:258
207
  msgid "Allow searching weather forecasts."
208
  msgstr ""
209
 
210
+ #: inc/class-widget.php:261
211
  msgid "Weekday Labels"
212
  msgstr ""
213
 
214
+ #: inc/class-widget.php:262
215
  msgid "Show the names of the days of the week."
216
  msgstr "Pokaži imena dni v tednu"
217
 
218
+ #: inc/class-widget.php:265
219
  msgid "Date"
220
  msgstr "Datum"
221
 
222
+ #: inc/class-widget.php:266
223
  msgid "Display the date numerically (\"09/14\")."
224
  msgstr "Prikaži datum numerično (\"14.09\")"
225
 
226
+ #: inc/class-widget.php:269
227
  msgid "Weather Icon"
228
  msgstr ""
229
 
230
+ #: inc/class-widget.php:270
231
  msgid "Icon representing the forecast conditions."
232
  msgstr ""
233
 
234
+ #: inc/class-widget.php:273
235
  msgid "Chance of Rain"
236
  msgstr "Možnost dežja"
237
 
238
+ #: inc/class-widget.php:274
239
  msgid "Display the percent chance of rain."
240
  msgstr "Prikaži % možnost dežja"
241
 
242
+ #: inc/class-widget.php:277
243
  msgid "High & Low Temp"
244
  msgstr "Dnevne in jutranje temperature"
245
 
246
+ #: inc/class-widget.php:278
247
  msgid "Show the high & low temperatures for forecast."
248
  msgstr ""
249
 
250
+ #: inc/class-widget.php:281
251
  msgid "Condition Title"
252
  msgstr ""
253
 
254
+ #: inc/class-widget.php:282
255
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
256
  msgstr ""
257
 
258
+ #: inc/class-widget.php:285
259
  msgid "Forecast Text"
260
  msgstr ""
261
 
262
+ #: inc/class-widget.php:286
263
  msgid "Display a description of the forecast, normally in sentence format."
264
  msgstr ""
265
 
266
+ #: inc/class-widget.php:289
267
  msgid "Weather Alerts &amp; Warnings"
268
  msgstr ""
269
 
270
+ #: inc/class-widget.php:290
271
+ msgid "Display Severe Weather alerts and warnings."
 
 
272
  msgstr ""
273
 
274
+ #: inc/class-widget.php:306
275
  msgid "Forecast Language"
276
  msgstr "Jezik"
277
 
278
+ #: inc/class-widget.php:317
279
  msgid "Measurements"
280
  msgstr "Merske enote"
281
 
282
+ #: inc/class-widget.php:320
283
  msgid "Fahrenheit &amp; Inches"
284
  msgstr "Fahrenheit &amp; Inches"
285
 
286
+ #: inc/class-widget.php:323
287
  msgid "Celsius &amp; Meters"
288
  msgstr "Stopinje celzija &amp; metri"
289
 
languages/wunderground-sq.mo CHANGED
Binary file
languages/wunderground-sq.po CHANGED
@@ -3,16 +3,16 @@
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
7
- "PO-Revision-Date: 2014-12-04 20:12+0000\n"
8
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
- "Language-Team: Albanian (http://www.transifex.com/projects/p/wunderground/language/sq/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: sq\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
- "X-Generator: Poedit 1.7beta3\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
@@ -114,172 +114,175 @@ msgstr ""
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
- #: inc/class-widget.php:152
 
 
 
 
 
118
  msgid "Title"
119
  msgstr ""
120
 
121
- #: inc/class-widget.php:153
122
  msgid "Leave empty to hide the widget title."
123
  msgstr ""
124
 
125
- #: inc/class-widget.php:159
126
  msgid "Location"
127
  msgstr ""
128
 
129
- #: inc/class-widget.php:160
130
  msgid "Locations will autoload, but you may also define custom locations."
131
  msgstr ""
132
 
133
- #: inc/class-widget.php:161
134
  msgid "Enter the name of a location."
135
  msgstr ""
136
 
137
- #: inc/class-widget.php:168
138
  msgid "Location Title"
139
  msgstr ""
140
 
141
- #: inc/class-widget.php:169
142
  msgid "Change how the location is displayed in the widget search field."
143
  msgstr ""
144
 
145
- #: inc/class-widget.php:170
146
  msgid "Leave empty to use the location name."
147
  msgstr ""
148
 
149
- #: inc/class-widget.php:171
150
  msgid ""
151
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
152
  "set the Location Title as \"Denver\", which is simpler."
153
  msgstr ""
154
 
155
- #: inc/class-widget.php:180
156
  msgid "# of Days in Forecast"
157
  msgstr ""
158
 
159
- #: inc/class-widget.php:186
160
  msgid "Include Current Conditions"
161
  msgstr ""
162
 
163
- #: inc/class-widget.php:187
164
  msgid "Add the current conditions to the forecast."
165
  msgstr ""
166
 
167
- #: inc/class-widget.php:193
168
  msgid "Include Night Forecasts"
169
  msgstr ""
170
 
171
- #: inc/class-widget.php:194
172
  msgid "This will result in double the number of forecasts shown."
173
  msgstr ""
174
 
175
- #: inc/class-widget.php:200
176
  msgid "Icon Set"
177
  msgstr ""
178
 
179
- #: inc/class-widget.php:201
180
  msgid ""
181
  "Choose the look and feel of the images that will represent the weather."
182
  msgstr ""
183
 
184
- #: inc/class-widget.php:229
185
  msgid "Widget Template"
186
  msgstr ""
187
 
188
- #: inc/class-widget.php:230
189
  msgid "Choose how you would like to display the forecast."
190
  msgstr ""
191
 
192
- #: inc/class-widget.php:235
193
  msgid "Show in Forecast"
194
  msgstr ""
195
 
196
- #: inc/class-widget.php:240
197
  msgid "Search Form"
198
  msgstr ""
199
 
200
- #: inc/class-widget.php:241
201
  msgid "Allow searching weather forecasts."
202
  msgstr ""
203
 
204
- #: inc/class-widget.php:244
205
  msgid "Weekday Labels"
206
  msgstr ""
207
 
208
- #: inc/class-widget.php:245
209
  msgid "Show the names of the days of the week."
210
  msgstr ""
211
 
212
- #: inc/class-widget.php:248
213
  msgid "Date"
214
  msgstr ""
215
 
216
- #: inc/class-widget.php:249
217
  msgid "Display the date numerically (\"09/14\")."
218
  msgstr ""
219
 
220
- #: inc/class-widget.php:252
221
  msgid "Weather Icon"
222
  msgstr ""
223
 
224
- #: inc/class-widget.php:253
225
  msgid "Icon representing the forecast conditions."
226
  msgstr ""
227
 
228
- #: inc/class-widget.php:256
229
  msgid "Chance of Rain"
230
  msgstr ""
231
 
232
- #: inc/class-widget.php:257
233
  msgid "Display the percent chance of rain."
234
  msgstr ""
235
 
236
- #: inc/class-widget.php:260
237
  msgid "High & Low Temp"
238
  msgstr ""
239
 
240
- #: inc/class-widget.php:261
241
  msgid "Show the high & low temperatures for forecast."
242
  msgstr ""
243
 
244
- #: inc/class-widget.php:264
245
  msgid "Condition Title"
246
  msgstr ""
247
 
248
- #: inc/class-widget.php:265
249
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
250
  msgstr ""
251
 
252
- #: inc/class-widget.php:268
253
  msgid "Forecast Text"
254
  msgstr ""
255
 
256
- #: inc/class-widget.php:269
257
  msgid "Display a description of the forecast, normally in sentence format."
258
  msgstr ""
259
 
260
- #: inc/class-widget.php:272
261
  msgid "Weather Alerts &amp; Warnings"
262
  msgstr ""
263
 
264
- #: inc/class-widget.php:273
265
- msgid ""
266
- "This functionality is currently not working; we are working with "
267
- "Wunderground.com to restore it."
268
  msgstr ""
269
 
270
- #: inc/class-widget.php:289
271
  msgid "Forecast Language"
272
  msgstr ""
273
 
274
- #: inc/class-widget.php:300
275
  msgid "Measurements"
276
  msgstr ""
277
 
278
- #: inc/class-widget.php:303
279
  msgid "Fahrenheit &amp; Inches"
280
  msgstr ""
281
 
282
- #: inc/class-widget.php:306
283
  msgid "Celsius &amp; Meters"
284
  msgstr ""
285
 
3
  msgid ""
4
  msgstr ""
5
  "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
  "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: Albanian (http://www.transifex.com/katzwebservices/wunderground/language/sq/)\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=UTF-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
13
  "Language: sq\n"
14
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
  "X-Poedit-Basepath: ..\n"
17
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
  "X-Poedit-SearchPath-0: .\n"
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
  msgid "Title"
124
  msgstr ""
125
 
126
+ #: inc/class-widget.php:170
127
  msgid "Leave empty to hide the widget title."
128
  msgstr ""
129
 
130
+ #: inc/class-widget.php:176
131
  msgid "Location"
132
  msgstr ""
133
 
134
+ #: inc/class-widget.php:177
135
  msgid "Locations will autoload, but you may also define custom locations."
136
  msgstr ""
137
 
138
+ #: inc/class-widget.php:178
139
  msgid "Enter the name of a location."
140
  msgstr ""
141
 
142
+ #: inc/class-widget.php:185
143
  msgid "Location Title"
144
  msgstr ""
145
 
146
+ #: inc/class-widget.php:186
147
  msgid "Change how the location is displayed in the widget search field."
148
  msgstr ""
149
 
150
+ #: inc/class-widget.php:187
151
  msgid "Leave empty to use the location name."
152
  msgstr ""
153
 
154
+ #: inc/class-widget.php:188
155
  msgid ""
156
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
  "set the Location Title as \"Denver\", which is simpler."
158
  msgstr ""
159
 
160
+ #: inc/class-widget.php:197
161
  msgid "# of Days in Forecast"
162
  msgstr ""
163
 
164
+ #: inc/class-widget.php:203
165
  msgid "Include Current Conditions"
166
  msgstr ""
167
 
168
+ #: inc/class-widget.php:204
169
  msgid "Add the current conditions to the forecast."
170
  msgstr ""
171
 
172
+ #: inc/class-widget.php:210
173
  msgid "Include Night Forecasts"
174
  msgstr ""
175
 
176
+ #: inc/class-widget.php:211
177
  msgid "This will result in double the number of forecasts shown."
178
  msgstr ""
179
 
180
+ #: inc/class-widget.php:217
181
  msgid "Icon Set"
182
  msgstr ""
183
 
184
+ #: inc/class-widget.php:218
185
  msgid ""
186
  "Choose the look and feel of the images that will represent the weather."
187
  msgstr ""
188
 
189
+ #: inc/class-widget.php:246
190
  msgid "Widget Template"
191
  msgstr ""
192
 
193
+ #: inc/class-widget.php:247
194
  msgid "Choose how you would like to display the forecast."
195
  msgstr ""
196
 
197
+ #: inc/class-widget.php:252
198
  msgid "Show in Forecast"
199
  msgstr ""
200
 
201
+ #: inc/class-widget.php:257
202
  msgid "Search Form"
203
  msgstr ""
204
 
205
+ #: inc/class-widget.php:258
206
  msgid "Allow searching weather forecasts."
207
  msgstr ""
208
 
209
+ #: inc/class-widget.php:261
210
  msgid "Weekday Labels"
211
  msgstr ""
212
 
213
+ #: inc/class-widget.php:262
214
  msgid "Show the names of the days of the week."
215
  msgstr ""
216
 
217
+ #: inc/class-widget.php:265
218
  msgid "Date"
219
  msgstr ""
220
 
221
+ #: inc/class-widget.php:266
222
  msgid "Display the date numerically (\"09/14\")."
223
  msgstr ""
224
 
225
+ #: inc/class-widget.php:269
226
  msgid "Weather Icon"
227
  msgstr ""
228
 
229
+ #: inc/class-widget.php:270
230
  msgid "Icon representing the forecast conditions."
231
  msgstr ""
232
 
233
+ #: inc/class-widget.php:273
234
  msgid "Chance of Rain"
235
  msgstr ""
236
 
237
+ #: inc/class-widget.php:274
238
  msgid "Display the percent chance of rain."
239
  msgstr ""
240
 
241
+ #: inc/class-widget.php:277
242
  msgid "High & Low Temp"
243
  msgstr ""
244
 
245
+ #: inc/class-widget.php:278
246
  msgid "Show the high & low temperatures for forecast."
247
  msgstr ""
248
 
249
+ #: inc/class-widget.php:281
250
  msgid "Condition Title"
251
  msgstr ""
252
 
253
+ #: inc/class-widget.php:282
254
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
  msgstr ""
256
 
257
+ #: inc/class-widget.php:285
258
  msgid "Forecast Text"
259
  msgstr ""
260
 
261
+ #: inc/class-widget.php:286
262
  msgid "Display a description of the forecast, normally in sentence format."
263
  msgstr ""
264
 
265
+ #: inc/class-widget.php:289
266
  msgid "Weather Alerts &amp; Warnings"
267
  msgstr ""
268
 
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
 
 
271
  msgstr ""
272
 
273
+ #: inc/class-widget.php:306
274
  msgid "Forecast Language"
275
  msgstr ""
276
 
277
+ #: inc/class-widget.php:317
278
  msgid "Measurements"
279
  msgstr ""
280
 
281
+ #: inc/class-widget.php:320
282
  msgid "Fahrenheit &amp; Inches"
283
  msgstr ""
284
 
285
+ #: inc/class-widget.php:323
286
  msgid "Celsius &amp; Meters"
287
  msgstr ""
288
 
languages/wunderground-sv.mo ADDED
Binary file
languages/wunderground-sv.po ADDED
@@ -0,0 +1,663 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #
2
+ # Translators:
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: Wunderground\n"
6
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
7
+ "PO-Revision-Date: 2015-08-25 22:03+0000\n"
8
+ "Last-Translator: Zachary Katz <zack@katz.co>\n"
9
+ "Language-Team: Swedish (http://www.transifex.com/katzwebservices/wunderground/language/sv/)\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "Language: sv\n"
14
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
15
+ "X-Generator: Poedit 1.7.1\n"
16
+ "X-Poedit-Basepath: ..\n"
17
+ "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
18
+ "X-Poedit-SearchPath-0: .\n"
19
+ "X-Poedit-SourceCharset: UTF-8\n"
20
+
21
+ #: inc/class-template.php:67
22
+ #, php-format
23
+ msgid "Statement as of %s"
24
+ msgstr ""
25
+
26
+ #: inc/class-template.php:68
27
+ msgid "The location could not be found."
28
+ msgstr ""
29
+
30
+ #: inc/class-template.php:69
31
+ #, php-format
32
+ msgid "%s%%"
33
+ msgstr ""
34
+
35
+ #: inc/class-template.php:70
36
+ #, php-format
37
+ msgid "%s%% Chance of Precipitation"
38
+ msgstr ""
39
+
40
+ #: inc/class-template.php:71
41
+ msgid "Currently"
42
+ msgstr ""
43
+
44
+ #: inc/class-template.php:72
45
+ #, php-format
46
+ msgid "High %d&deg;"
47
+ msgstr ""
48
+
49
+ #: inc/class-template.php:73
50
+ #, php-format
51
+ msgid "Low %d&deg;"
52
+ msgstr ""
53
+
54
+ #: inc/class-template.php:74
55
+ #, php-format
56
+ msgid "%d&deg;"
57
+ msgstr ""
58
+
59
+ #: inc/class-template.php:75
60
+ #, php-format
61
+ msgid "View the %s forecast on Wunderground.com"
62
+ msgstr ""
63
+
64
+ #: inc/class-template.php:76
65
+ msgctxt "Weather alert issued date/time"
66
+ msgid "Issued:"
67
+ msgstr ""
68
+
69
+ #: inc/class-template.php:77
70
+ msgctxt "Weather alert expires date/time"
71
+ msgid "Expires:"
72
+ msgstr ""
73
+
74
+ #: inc/class-template.php:149
75
+ msgid "Current Conditions"
76
+ msgstr ""
77
+
78
+ #: inc/class-template.php:150
79
+ msgid "Simple display of the current conditions."
80
+ msgstr ""
81
+
82
+ #: inc/class-template.php:155
83
+ msgid "Grid Forecast"
84
+ msgstr ""
85
+
86
+ #: inc/class-template.php:156
87
+ msgid "Scales to any screen size."
88
+ msgstr ""
89
+
90
+ #: inc/class-template.php:161
91
+ msgid "Details Table"
92
+ msgstr ""
93
+
94
+ #: inc/class-template.php:162
95
+ msgid ""
96
+ "Display the forecast in a table with rows. Great for in-depth forecast "
97
+ "display."
98
+ msgstr ""
99
+
100
+ #: inc/class-template.php:167
101
+ msgid "Horizontal Table"
102
+ msgstr ""
103
+
104
+ #: inc/class-template.php:168
105
+ msgid ""
106
+ "Display the forecast in a table with columns. Great for forecast summaries."
107
+ msgstr ""
108
+
109
+ #: inc/class-widget.php:43
110
+ msgid "Add a Wunderground.com forecast"
111
+ msgstr ""
112
+
113
+ #: inc/class-widget.php:48 inc/functions.php:176
114
+ msgid "Wunderground"
115
+ msgstr ""
116
+
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
+ msgid "Title"
124
+ msgstr ""
125
+
126
+ #: inc/class-widget.php:170
127
+ msgid "Leave empty to hide the widget title."
128
+ msgstr ""
129
+
130
+ #: inc/class-widget.php:176
131
+ msgid "Location"
132
+ msgstr ""
133
+
134
+ #: inc/class-widget.php:177
135
+ msgid "Locations will autoload, but you may also define custom locations."
136
+ msgstr ""
137
+
138
+ #: inc/class-widget.php:178
139
+ msgid "Enter the name of a location."
140
+ msgstr ""
141
+
142
+ #: inc/class-widget.php:185
143
+ msgid "Location Title"
144
+ msgstr ""
145
+
146
+ #: inc/class-widget.php:186
147
+ msgid "Change how the location is displayed in the widget search field."
148
+ msgstr ""
149
+
150
+ #: inc/class-widget.php:187
151
+ msgid "Leave empty to use the location name."
152
+ msgstr ""
153
+
154
+ #: inc/class-widget.php:188
155
+ msgid ""
156
+ "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
+ "set the Location Title as \"Denver\", which is simpler."
158
+ msgstr ""
159
+
160
+ #: inc/class-widget.php:197
161
+ msgid "# of Days in Forecast"
162
+ msgstr ""
163
+
164
+ #: inc/class-widget.php:203
165
+ msgid "Include Current Conditions"
166
+ msgstr ""
167
+
168
+ #: inc/class-widget.php:204
169
+ msgid "Add the current conditions to the forecast."
170
+ msgstr ""
171
+
172
+ #: inc/class-widget.php:210
173
+ msgid "Include Night Forecasts"
174
+ msgstr ""
175
+
176
+ #: inc/class-widget.php:211
177
+ msgid "This will result in double the number of forecasts shown."
178
+ msgstr ""
179
+
180
+ #: inc/class-widget.php:217
181
+ msgid "Icon Set"
182
+ msgstr ""
183
+
184
+ #: inc/class-widget.php:218
185
+ msgid ""
186
+ "Choose the look and feel of the images that will represent the weather."
187
+ msgstr ""
188
+
189
+ #: inc/class-widget.php:246
190
+ msgid "Widget Template"
191
+ msgstr ""
192
+
193
+ #: inc/class-widget.php:247
194
+ msgid "Choose how you would like to display the forecast."
195
+ msgstr ""
196
+
197
+ #: inc/class-widget.php:252
198
+ msgid "Show in Forecast"
199
+ msgstr ""
200
+
201
+ #: inc/class-widget.php:257
202
+ msgid "Search Form"
203
+ msgstr ""
204
+
205
+ #: inc/class-widget.php:258
206
+ msgid "Allow searching weather forecasts."
207
+ msgstr ""
208
+
209
+ #: inc/class-widget.php:261
210
+ msgid "Weekday Labels"
211
+ msgstr ""
212
+
213
+ #: inc/class-widget.php:262
214
+ msgid "Show the names of the days of the week."
215
+ msgstr ""
216
+
217
+ #: inc/class-widget.php:265
218
+ msgid "Date"
219
+ msgstr ""
220
+
221
+ #: inc/class-widget.php:266
222
+ msgid "Display the date numerically (\"09/14\")."
223
+ msgstr ""
224
+
225
+ #: inc/class-widget.php:269
226
+ msgid "Weather Icon"
227
+ msgstr ""
228
+
229
+ #: inc/class-widget.php:270
230
+ msgid "Icon representing the forecast conditions."
231
+ msgstr ""
232
+
233
+ #: inc/class-widget.php:273
234
+ msgid "Chance of Rain"
235
+ msgstr ""
236
+
237
+ #: inc/class-widget.php:274
238
+ msgid "Display the percent chance of rain."
239
+ msgstr ""
240
+
241
+ #: inc/class-widget.php:277
242
+ msgid "High & Low Temp"
243
+ msgstr ""
244
+
245
+ #: inc/class-widget.php:278
246
+ msgid "Show the high & low temperatures for forecast."
247
+ msgstr ""
248
+
249
+ #: inc/class-widget.php:281
250
+ msgid "Condition Title"
251
+ msgstr ""
252
+
253
+ #: inc/class-widget.php:282
254
+ msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
255
+ msgstr ""
256
+
257
+ #: inc/class-widget.php:285
258
+ msgid "Forecast Text"
259
+ msgstr ""
260
+
261
+ #: inc/class-widget.php:286
262
+ msgid "Display a description of the forecast, normally in sentence format."
263
+ msgstr ""
264
+
265
+ #: inc/class-widget.php:289
266
+ msgid "Weather Alerts &amp; Warnings"
267
+ msgstr ""
268
+
269
+ #: inc/class-widget.php:290
270
+ msgid "Display Severe Weather alerts and warnings."
271
+ msgstr ""
272
+
273
+ #: inc/class-widget.php:306
274
+ msgid "Forecast Language"
275
+ msgstr ""
276
+
277
+ #: inc/class-widget.php:317
278
+ msgid "Measurements"
279
+ msgstr ""
280
+
281
+ #: inc/class-widget.php:320
282
+ msgid "Fahrenheit &amp; Inches"
283
+ msgstr ""
284
+
285
+ #: inc/class-widget.php:323
286
+ msgid "Celsius &amp; Meters"
287
+ msgstr ""
288
+
289
+ #: inc/functions.php:44
290
+ msgid "Weather Forecast"
291
+ msgstr ""
292
+
293
+ #: inc/functions.php:161 inc/functions.php:178
294
+ msgid "Incredible"
295
+ msgstr ""
296
+
297
+ #: inc/functions.php:162 inc/functions.php:177
298
+ msgid "Elemental"
299
+ msgstr ""
300
+
301
+ #: inc/functions.php:163 inc/functions.php:179
302
+ msgid "Helen"
303
+ msgstr ""
304
+
305
+ #: inc/functions.php:164 inc/functions.php:181
306
+ msgid "Default"
307
+ msgstr ""
308
+
309
+ #: inc/functions.php:165 inc/functions.php:182
310
+ msgid "Smiley"
311
+ msgstr ""
312
+
313
+ #: inc/functions.php:166 inc/functions.php:183
314
+ msgid "Generic"
315
+ msgstr ""
316
+
317
+ #: inc/functions.php:167 inc/functions.php:184
318
+ msgid "Old School"
319
+ msgstr ""
320
+
321
+ #: inc/functions.php:168 inc/functions.php:185
322
+ msgid "Cartoon"
323
+ msgstr ""
324
+
325
+ #: inc/functions.php:169 inc/functions.php:186
326
+ msgid "Mobile"
327
+ msgstr ""
328
+
329
+ #: inc/functions.php:170 inc/functions.php:187
330
+ msgid "Simple"
331
+ msgstr ""
332
+
333
+ #: inc/functions.php:171 inc/functions.php:188
334
+ msgid "Contemporary"
335
+ msgstr ""
336
+
337
+ #: inc/functions.php:363
338
+ msgid "Afrikaans"
339
+ msgstr ""
340
+
341
+ #: inc/functions.php:368
342
+ msgid "Albanian"
343
+ msgstr ""
344
+
345
+ #: inc/functions.php:373
346
+ msgid "Arabic"
347
+ msgstr ""
348
+
349
+ #: inc/functions.php:379
350
+ msgid "Armenian"
351
+ msgstr ""
352
+
353
+ #: inc/functions.php:384
354
+ msgid "Azerbaijani"
355
+ msgstr ""
356
+
357
+ #: inc/functions.php:389
358
+ msgid "Basque"
359
+ msgstr ""
360
+
361
+ #: inc/functions.php:394
362
+ msgid "Belarusian"
363
+ msgstr ""
364
+
365
+ #: inc/functions.php:399
366
+ msgid "Bulgarian"
367
+ msgstr ""
368
+
369
+ #: inc/functions.php:404
370
+ msgid "British English"
371
+ msgstr ""
372
+
373
+ #: inc/functions.php:409
374
+ msgid "Burmese"
375
+ msgstr ""
376
+
377
+ #: inc/functions.php:414
378
+ msgid "Catalan"
379
+ msgstr ""
380
+
381
+ #: inc/functions.php:419
382
+ msgid "Chinese - Simplified"
383
+ msgstr ""
384
+
385
+ #: inc/functions.php:424
386
+ msgid "Chinese - Traditional"
387
+ msgstr ""
388
+
389
+ #: inc/functions.php:429
390
+ msgid "Croatian"
391
+ msgstr ""
392
+
393
+ #: inc/functions.php:434
394
+ msgid "Czech"
395
+ msgstr ""
396
+
397
+ #: inc/functions.php:439
398
+ msgid "Danish"
399
+ msgstr ""
400
+
401
+ #: inc/functions.php:444
402
+ msgid "Dhivehi"
403
+ msgstr ""
404
+
405
+ #: inc/functions.php:450
406
+ msgid "Dutch"
407
+ msgstr ""
408
+
409
+ #: inc/functions.php:455
410
+ msgid "English"
411
+ msgstr ""
412
+
413
+ #: inc/functions.php:460
414
+ msgid "Esperanto"
415
+ msgstr ""
416
+
417
+ #: inc/functions.php:465
418
+ msgid "Estonian"
419
+ msgstr ""
420
+
421
+ #: inc/functions.php:470
422
+ msgid "Farsi"
423
+ msgstr ""
424
+
425
+ #: inc/functions.php:475
426
+ msgid "Finnish"
427
+ msgstr ""
428
+
429
+ #: inc/functions.php:480
430
+ msgid "French"
431
+ msgstr ""
432
+
433
+ #: inc/functions.php:485
434
+ msgid "French Canadian"
435
+ msgstr ""
436
+
437
+ #: inc/functions.php:490
438
+ msgid "Galician"
439
+ msgstr ""
440
+
441
+ #: inc/functions.php:495
442
+ msgid "German"
443
+ msgstr ""
444
+
445
+ #: inc/functions.php:500
446
+ msgid "Georgian"
447
+ msgstr ""
448
+
449
+ #: inc/functions.php:505
450
+ msgid "Greek"
451
+ msgstr ""
452
+
453
+ #: inc/functions.php:510
454
+ msgid "Gujarati"
455
+ msgstr ""
456
+
457
+ #: inc/functions.php:515
458
+ msgid "Haitian Creole"
459
+ msgstr ""
460
+
461
+ #: inc/functions.php:520
462
+ msgid "Hebrew"
463
+ msgstr ""
464
+
465
+ #: inc/functions.php:526
466
+ msgid "Hindi"
467
+ msgstr ""
468
+
469
+ #: inc/functions.php:531
470
+ msgid "Hungarian"
471
+ msgstr ""
472
+
473
+ #: inc/functions.php:536
474
+ msgid "Icelandic"
475
+ msgstr ""
476
+
477
+ #: inc/functions.php:541
478
+ msgid "Ido"
479
+ msgstr ""
480
+
481
+ #: inc/functions.php:546
482
+ msgid "Indonesian"
483
+ msgstr ""
484
+
485
+ #: inc/functions.php:551
486
+ msgid "Irish Gaelic"
487
+ msgstr ""
488
+
489
+ #: inc/functions.php:556
490
+ msgid "Italian"
491
+ msgstr ""
492
+
493
+ #: inc/functions.php:561
494
+ msgid "Japanese"
495
+ msgstr ""
496
+
497
+ #: inc/functions.php:566
498
+ msgid "Javanese"
499
+ msgstr ""
500
+
501
+ #: inc/functions.php:571
502
+ msgid "Khmer"
503
+ msgstr ""
504
+
505
+ #: inc/functions.php:576
506
+ msgid "Korean"
507
+ msgstr ""
508
+
509
+ #: inc/functions.php:581
510
+ msgid "Kurdish"
511
+ msgstr ""
512
+
513
+ #: inc/functions.php:587
514
+ msgid "Latin"
515
+ msgstr ""
516
+
517
+ #: inc/functions.php:592
518
+ msgid "Latvian"
519
+ msgstr ""
520
+
521
+ #: inc/functions.php:597
522
+ msgid "Lithuanian"
523
+ msgstr ""
524
+
525
+ #: inc/functions.php:602
526
+ msgid "Low German"
527
+ msgstr ""
528
+
529
+ #: inc/functions.php:607
530
+ msgid "Macedonian"
531
+ msgstr ""
532
+
533
+ #: inc/functions.php:612
534
+ msgid "Maltese"
535
+ msgstr ""
536
+
537
+ #: inc/functions.php:617
538
+ msgid "Mandinka"
539
+ msgstr ""
540
+
541
+ #: inc/functions.php:622
542
+ msgid "Maori"
543
+ msgstr ""
544
+
545
+ #: inc/functions.php:627
546
+ msgid "Marathi"
547
+ msgstr ""
548
+
549
+ #: inc/functions.php:632
550
+ msgid "Mongolian"
551
+ msgstr ""
552
+
553
+ #: inc/functions.php:637
554
+ msgid "Norwegian"
555
+ msgstr ""
556
+
557
+ #: inc/functions.php:642
558
+ msgid "Occitan"
559
+ msgstr ""
560
+
561
+ #: inc/functions.php:647
562
+ msgid "Pashto"
563
+ msgstr ""
564
+
565
+ #: inc/functions.php:653
566
+ msgid "Plautdietsch"
567
+ msgstr ""
568
+
569
+ #: inc/functions.php:658
570
+ msgid "Polish"
571
+ msgstr ""
572
+
573
+ #: inc/functions.php:663
574
+ msgid "Portuguese"
575
+ msgstr ""
576
+
577
+ #: inc/functions.php:668
578
+ msgid "Punjabi"
579
+ msgstr ""
580
+
581
+ #: inc/functions.php:674
582
+ msgid "Romanian"
583
+ msgstr ""
584
+
585
+ #: inc/functions.php:679
586
+ msgid "Russian"
587
+ msgstr ""
588
+
589
+ #: inc/functions.php:684
590
+ msgid "Serbian"
591
+ msgstr ""
592
+
593
+ #: inc/functions.php:689
594
+ msgid "Slovak"
595
+ msgstr ""
596
+
597
+ #: inc/functions.php:694
598
+ msgid "Slovenian"
599
+ msgstr ""
600
+
601
+ #: inc/functions.php:699
602
+ msgid "Spanish"
603
+ msgstr ""
604
+
605
+ #: inc/functions.php:704
606
+ msgid "Swahili"
607
+ msgstr ""
608
+
609
+ #: inc/functions.php:709
610
+ msgid "Swedish"
611
+ msgstr ""
612
+
613
+ #: inc/functions.php:714
614
+ msgid "Swiss"
615
+ msgstr ""
616
+
617
+ #: inc/functions.php:719
618
+ msgid "Tagalog"
619
+ msgstr ""
620
+
621
+ #: inc/functions.php:724
622
+ msgid "Tatarish"
623
+ msgstr ""
624
+
625
+ #: inc/functions.php:729
626
+ msgid "Thai"
627
+ msgstr ""
628
+
629
+ #: inc/functions.php:734
630
+ msgid "Turkish"
631
+ msgstr ""
632
+
633
+ #: inc/functions.php:739
634
+ msgid "Turkmen"
635
+ msgstr ""
636
+
637
+ #: inc/functions.php:744
638
+ msgid "Ukrainian"
639
+ msgstr ""
640
+
641
+ #: inc/functions.php:749
642
+ msgid "Uzbek"
643
+ msgstr ""
644
+
645
+ #: inc/functions.php:754
646
+ msgid "Vietnamese"
647
+ msgstr ""
648
+
649
+ #: inc/functions.php:759
650
+ msgid "Welsh"
651
+ msgstr ""
652
+
653
+ #: inc/functions.php:764
654
+ msgid "Wolof"
655
+ msgstr ""
656
+
657
+ #: inc/functions.php:769
658
+ msgid "Yiddish - transliterated"
659
+ msgstr ""
660
+
661
+ #: inc/functions.php:774
662
+ msgid "Yiddish - unicode"
663
+ msgstr ""
languages/wunderground.mo CHANGED
Binary file
languages/wunderground.po CHANGED
@@ -1,15 +1,15 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Weather Underground\n"
4
- "POT-Creation-Date: 2014-12-04 13:11-0700\n"
5
- "PO-Revision-Date: 2014-12-04 13:11-0700\n"
6
  "Last-Translator: Katz Web Services, Inc. <support@katz.co>\n"
7
  "Language-Team: Katz Web Services, Inc. <support@katz.co>\n"
8
  "Language: en_US\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.7beta3\n"
13
  "X-Poedit-Basepath: ..\n"
14
  "X-Poedit-SourceCharset: UTF-8\n"
15
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
@@ -114,171 +114,174 @@ msgstr ""
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
- #: inc/class-widget.php:152
 
 
 
 
 
118
  msgid "Title"
119
  msgstr ""
120
 
121
- #: inc/class-widget.php:153
122
  msgid "Leave empty to hide the widget title."
123
  msgstr ""
124
 
125
- #: inc/class-widget.php:159
126
  msgid "Location"
127
  msgstr ""
128
 
129
- #: inc/class-widget.php:160
130
  msgid "Locations will autoload, but you may also define custom locations."
131
  msgstr ""
132
 
133
- #: inc/class-widget.php:161
134
  msgid "Enter the name of a location."
135
  msgstr ""
136
 
137
- #: inc/class-widget.php:168
138
  msgid "Location Title"
139
  msgstr ""
140
 
141
- #: inc/class-widget.php:169
142
  msgid "Change how the location is displayed in the widget search field."
143
  msgstr ""
144
 
145
- #: inc/class-widget.php:170
146
  msgid "Leave empty to use the location name."
147
  msgstr ""
148
 
149
- #: inc/class-widget.php:171
150
  msgid ""
151
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
152
  "set the Location Title as \"Denver\", which is simpler."
153
  msgstr ""
154
 
155
- #: inc/class-widget.php:180
156
  msgid "# of Days in Forecast"
157
  msgstr ""
158
 
159
- #: inc/class-widget.php:186
160
  msgid "Include Current Conditions"
161
  msgstr ""
162
 
163
- #: inc/class-widget.php:187
164
  msgid "Add the current conditions to the forecast."
165
  msgstr ""
166
 
167
- #: inc/class-widget.php:193
168
  msgid "Include Night Forecasts"
169
  msgstr ""
170
 
171
- #: inc/class-widget.php:194
172
  msgid "This will result in double the number of forecasts shown."
173
  msgstr ""
174
 
175
- #: inc/class-widget.php:200
176
  msgid "Icon Set"
177
  msgstr ""
178
 
179
- #: inc/class-widget.php:201
180
  msgid "Choose the look and feel of the images that will represent the weather."
181
  msgstr ""
182
 
183
- #: inc/class-widget.php:229
184
  msgid "Widget Template"
185
  msgstr ""
186
 
187
- #: inc/class-widget.php:230
188
  msgid "Choose how you would like to display the forecast."
189
  msgstr ""
190
 
191
- #: inc/class-widget.php:235
192
  msgid "Show in Forecast"
193
  msgstr ""
194
 
195
- #: inc/class-widget.php:240
196
  msgid "Search Form"
197
  msgstr ""
198
 
199
- #: inc/class-widget.php:241
200
  msgid "Allow searching weather forecasts."
201
  msgstr ""
202
 
203
- #: inc/class-widget.php:244
204
  msgid "Weekday Labels"
205
  msgstr ""
206
 
207
- #: inc/class-widget.php:245
208
  msgid "Show the names of the days of the week."
209
  msgstr ""
210
 
211
- #: inc/class-widget.php:248
212
  msgid "Date"
213
  msgstr ""
214
 
215
- #: inc/class-widget.php:249
216
  msgid "Display the date numerically (\"09/14\")."
217
  msgstr ""
218
 
219
- #: inc/class-widget.php:252
220
  msgid "Weather Icon"
221
  msgstr ""
222
 
223
- #: inc/class-widget.php:253
224
  msgid "Icon representing the forecast conditions."
225
  msgstr ""
226
 
227
- #: inc/class-widget.php:256
228
  msgid "Chance of Rain"
229
  msgstr ""
230
 
231
- #: inc/class-widget.php:257
232
  msgid "Display the percent chance of rain."
233
  msgstr ""
234
 
235
- #: inc/class-widget.php:260
236
  msgid "High & Low Temp"
237
  msgstr ""
238
 
239
- #: inc/class-widget.php:261
240
  msgid "Show the high & low temperatures for forecast."
241
  msgstr ""
242
 
243
- #: inc/class-widget.php:264
244
  msgid "Condition Title"
245
  msgstr ""
246
 
247
- #: inc/class-widget.php:265
248
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
249
  msgstr ""
250
 
251
- #: inc/class-widget.php:268
252
  msgid "Forecast Text"
253
  msgstr ""
254
 
255
- #: inc/class-widget.php:269
256
  msgid "Display a description of the forecast, normally in sentence format."
257
  msgstr ""
258
 
259
- #: inc/class-widget.php:272
260
  msgid "Weather Alerts &amp; Warnings"
261
  msgstr ""
262
 
263
- #: inc/class-widget.php:273
264
- msgid ""
265
- "This functionality is currently not working; we are working with "
266
- "Wunderground.com to restore it."
267
  msgstr ""
268
 
269
- #: inc/class-widget.php:289
270
  msgid "Forecast Language"
271
  msgstr ""
272
 
273
- #: inc/class-widget.php:300
274
  msgid "Measurements"
275
  msgstr ""
276
 
277
- #: inc/class-widget.php:303
278
  msgid "Fahrenheit &amp; Inches"
279
  msgstr ""
280
 
281
- #: inc/class-widget.php:306
282
  msgid "Celsius &amp; Meters"
283
  msgstr ""
284
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Weather Underground\n"
4
+ "POT-Creation-Date: 2015-08-25 16:01-0700\n"
5
+ "PO-Revision-Date: 2015-08-25 16:02-0700\n"
6
  "Last-Translator: Katz Web Services, Inc. <support@katz.co>\n"
7
  "Language-Team: Katz Web Services, Inc. <support@katz.co>\n"
8
  "Language: en_US\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Generator: Poedit 1.7.1\n"
13
  "X-Poedit-Basepath: ..\n"
14
  "X-Poedit-SourceCharset: UTF-8\n"
15
  "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
114
  msgid "Wunderground"
115
  msgstr ""
116
 
117
+ #: inc/class-widget.php:132
118
+ #, php-format
119
+ msgid "There was an error fetching the forecast: %s"
120
+ msgstr ""
121
+
122
+ #: inc/class-widget.php:169
123
  msgid "Title"
124
  msgstr ""
125
 
126
+ #: inc/class-widget.php:170
127
  msgid "Leave empty to hide the widget title."
128
  msgstr ""
129
 
130
+ #: inc/class-widget.php:176
131
  msgid "Location"
132
  msgstr ""
133
 
134
+ #: inc/class-widget.php:177
135
  msgid "Locations will autoload, but you may also define custom locations."
136
  msgstr ""
137
 
138
+ #: inc/class-widget.php:178
139
  msgid "Enter the name of a location."
140
  msgstr ""
141
 
142
+ #: inc/class-widget.php:185
143
  msgid "Location Title"
144
  msgstr ""
145
 
146
+ #: inc/class-widget.php:186
147
  msgid "Change how the location is displayed in the widget search field."
148
  msgstr ""
149
 
150
+ #: inc/class-widget.php:187
151
  msgid "Leave empty to use the location name."
152
  msgstr ""
153
 
154
+ #: inc/class-widget.php:188
155
  msgid ""
156
  "Example: if the Location is set to \"Denver, Colorado\", you may prefer to "
157
  "set the Location Title as \"Denver\", which is simpler."
158
  msgstr ""
159
 
160
+ #: inc/class-widget.php:197
161
  msgid "# of Days in Forecast"
162
  msgstr ""
163
 
164
+ #: inc/class-widget.php:203
165
  msgid "Include Current Conditions"
166
  msgstr ""
167
 
168
+ #: inc/class-widget.php:204
169
  msgid "Add the current conditions to the forecast."
170
  msgstr ""
171
 
172
+ #: inc/class-widget.php:210
173
  msgid "Include Night Forecasts"
174
  msgstr ""
175
 
176
+ #: inc/class-widget.php:211
177
  msgid "This will result in double the number of forecasts shown."
178
  msgstr ""
179
 
180
+ #: inc/class-widget.php:217
181
  msgid "Icon Set"
182
  msgstr ""
183
 
184
+ #: inc/class-widget.php:218
185
  msgid "Choose the look and feel of the images that will represent the weather."
186
  msgstr ""
187
 
188
+ #: inc/class-widget.php:246
189
  msgid "Widget Template"
190
  msgstr ""
191
 
192
+ #: inc/class-widget.php:247
193
  msgid "Choose how you would like to display the forecast."
194
  msgstr ""
195
 
196
+ #: inc/class-widget.php:252
197
  msgid "Show in Forecast"
198
  msgstr ""
199
 
200
+ #: inc/class-widget.php:257
201
  msgid "Search Form"
202
  msgstr ""
203
 
204
+ #: inc/class-widget.php:258
205
  msgid "Allow searching weather forecasts."
206
  msgstr ""
207
 
208
+ #: inc/class-widget.php:261
209
  msgid "Weekday Labels"
210
  msgstr ""
211
 
212
+ #: inc/class-widget.php:262
213
  msgid "Show the names of the days of the week."
214
  msgstr ""
215
 
216
+ #: inc/class-widget.php:265
217
  msgid "Date"
218
  msgstr ""
219
 
220
+ #: inc/class-widget.php:266
221
  msgid "Display the date numerically (\"09/14\")."
222
  msgstr ""
223
 
224
+ #: inc/class-widget.php:269
225
  msgid "Weather Icon"
226
  msgstr ""
227
 
228
+ #: inc/class-widget.php:270
229
  msgid "Icon representing the forecast conditions."
230
  msgstr ""
231
 
232
+ #: inc/class-widget.php:273
233
  msgid "Chance of Rain"
234
  msgstr ""
235
 
236
+ #: inc/class-widget.php:274
237
  msgid "Display the percent chance of rain."
238
  msgstr ""
239
 
240
+ #: inc/class-widget.php:277
241
  msgid "High & Low Temp"
242
  msgstr ""
243
 
244
+ #: inc/class-widget.php:278
245
  msgid "Show the high & low temperatures for forecast."
246
  msgstr ""
247
 
248
+ #: inc/class-widget.php:281
249
  msgid "Condition Title"
250
  msgstr ""
251
 
252
+ #: inc/class-widget.php:282
253
  msgid "Short summary of conditions (\"Clear\", \"Partly Cloudy\", etc.)."
254
  msgstr ""
255
 
256
+ #: inc/class-widget.php:285
257
  msgid "Forecast Text"
258
  msgstr ""
259
 
260
+ #: inc/class-widget.php:286
261
  msgid "Display a description of the forecast, normally in sentence format."
262
  msgstr ""
263
 
264
+ #: inc/class-widget.php:289
265
  msgid "Weather Alerts &amp; Warnings"
266
  msgstr ""
267
 
268
+ #: inc/class-widget.php:290
269
+ msgid "Display Severe Weather alerts and warnings."
 
 
270
  msgstr ""
271
 
272
+ #: inc/class-widget.php:306
273
  msgid "Forecast Language"
274
  msgstr ""
275
 
276
+ #: inc/class-widget.php:317
277
  msgid "Measurements"
278
  msgstr ""
279
 
280
+ #: inc/class-widget.php:320
281
  msgid "Fahrenheit &amp; Inches"
282
  msgstr ""
283
 
284
+ #: inc/class-widget.php:323
285
  msgid "Celsius &amp; Meters"
286
  msgstr ""
287
 
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Weather Underground ===
2
  Tags: weather, weather.com, wunderground, weather underground, weatherbug, forecast, Yahoo! Weather, wp-weather, wp weather, local weather, weather man, weather widget, cool weather, accuweather, get weather, wordpress weather
3
  Requires at least: 3.6
4
- Tested up to: 4.2.1
5
  Stable tag: trunk
6
  Contributors: katzwebdesign, katzwebservices
7
- Donate link: https://katz.co
8
 
9
  Get accurate and beautiful weather forecasts powered by Wunderground.com
10
 
@@ -97,6 +97,13 @@ Weather Underground has been very gracious and has provided the plugin with free
97
 
98
  == Changelog ==
99
 
 
 
 
 
 
 
 
100
  = 2.1 on April 29, 2015 =
101
  * Added: Now supports Weather Underground Severe Weather alerts & warnings
102
  * Fixed: Issue using multi-word cities (thanks [@christianriley](https://github.com/christianriley)!)
1
  === Weather Underground ===
2
  Tags: weather, weather.com, wunderground, weather underground, weatherbug, forecast, Yahoo! Weather, wp-weather, wp weather, local weather, weather man, weather widget, cool weather, accuweather, get weather, wordpress weather
3
  Requires at least: 3.6
4
+ Tested up to: 4.3
5
  Stable tag: trunk
6
  Contributors: katzwebdesign, katzwebservices
7
+ Donate link: https://gravityview.co
8
 
9
  Get accurate and beautiful weather forecasts powered by Wunderground.com
10
 
97
 
98
  == Changelog ==
99
 
100
+ = 2.1.1 on August 25, 2015 =
101
+ * Fixed: WordPress 4.3 compatibility
102
+ * Added: Display any errors while fetching forecasts to administrators
103
+ * Updated: Polish translation (thanks Cezary!) and Brazilian Portuguese (thanks Filipe!)
104
+ * Removed unused `<thead>` code in `table-horizontal.html` template
105
+ * Updated: Twig template loader to version 1.21 from 1.18.1
106
+
107
  = 2.1 on April 29, 2015 =
108
  * Added: Now supports Weather Underground Severe Weather alerts & warnings
109
  * Fixed: Issue using multi-word cities (thanks [@christianriley](https://github.com/christianriley)!)
templates/table-horizontal.html CHANGED
@@ -20,17 +20,6 @@
20
  <div class="wu-forecast-wrapper">
21
 
22
  <table class="wu-table-{{numdays}}">
23
-
24
- {% if showdata.daynames is not empty %}
25
- <thead>
26
- <tr>
27
- {% for i in range( low = 0, high = (numdays - 1) ) %}
28
- <th scope="col">{{ forecast.text_forecast.days[i].title }}</th>
29
- {% endfor %}
30
- </tr>
31
- </thead>
32
- {% endif %}
33
-
34
  <tbody>
35
  <tr class="forecast">
36
 
20
  <div class="wu-forecast-wrapper">
21
 
22
  <table class="wu-table-{{numdays}}">
 
 
 
 
 
 
 
 
 
 
 
23
  <tbody>
24
  <tr class="forecast">
25
 
vendor/composer/installed.json CHANGED
@@ -1,27 +1,31 @@
1
  [
2
  {
3
  "name": "twig/twig",
4
- "version": "v1.18.1",
5
- "version_normalized": "1.18.1.0",
6
  "source": {
7
  "type": "git",
8
  "url": "https://github.com/twigphp/Twig.git",
9
- "reference": "9f70492f44398e276d1b81c1b43adfe6751c7b7f"
10
  },
11
  "dist": {
12
  "type": "zip",
13
- "url": "https://api.github.com/repos/twigphp/Twig/zipball/9f70492f44398e276d1b81c1b43adfe6751c7b7f",
14
- "reference": "9f70492f44398e276d1b81c1b43adfe6751c7b7f",
15
  "shasum": ""
16
  },
17
  "require": {
18
  "php": ">=5.2.7"
19
  },
20
- "time": "2015-04-19 08:30:27",
 
 
 
 
21
  "type": "library",
22
  "extra": {
23
  "branch-alias": {
24
- "dev-master": "1.18-dev"
25
  }
26
  },
27
  "installation-source": "dist",
1
  [
2
  {
3
  "name": "twig/twig",
4
+ "version": "v1.21.0",
5
+ "version_normalized": "1.21.0.0",
6
  "source": {
7
  "type": "git",
8
  "url": "https://github.com/twigphp/Twig.git",
9
+ "reference": "913d282caca9ee0e8d05940c6caa486d58810dd4"
10
  },
11
  "dist": {
12
  "type": "zip",
13
+ "url": "https://api.github.com/repos/twigphp/Twig/zipball/913d282caca9ee0e8d05940c6caa486d58810dd4",
14
+ "reference": "913d282caca9ee0e8d05940c6caa486d58810dd4",
15
  "shasum": ""
16
  },
17
  "require": {
18
  "php": ">=5.2.7"
19
  },
20
+ "require-dev": {
21
+ "symfony/debug": "~2.7",
22
+ "symfony/phpunit-bridge": "~2.7"
23
+ },
24
+ "time": "2015-08-24 09:51:18",
25
  "type": "library",
26
  "extra": {
27
  "branch-alias": {
28
+ "dev-master": "1.21-dev"
29
  }
30
  },
31
  "installation-source": "dist",
vendor/twig/twig/.travis.yml CHANGED
@@ -1,32 +1,39 @@
1
  language: php
2
 
3
- php:
4
- - 5.2
5
- - 5.3
6
- - 5.4
7
- - 5.5
8
- - 5.6
9
- - hhvm
10
- - nightly
11
- - hhvm-nightly
12
 
13
- allow_failures:
14
- - php: nightly
15
- - php: hhvm-nightly
 
 
 
 
 
16
 
17
  env:
18
- - TWIG_EXT=no
19
- - TWIG_EXT=yes
 
 
 
 
20
 
21
  before_script:
22
- - if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && sudo make install"; fi
23
- - if [ "$TWIG_EXT" == "yes" ]; then echo "extension=twig.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi
 
24
 
25
  matrix:
26
- exclude:
27
- - php: hhvm
28
- env: TWIG_EXT=yes
29
- - php: hhvm-nightly
30
- env: TWIG_EXT=yes
31
- - php: nightly
32
- env: TWIG_EXT=yes
1
  language: php
2
 
3
+ sudo: false
4
+
5
+ cache:
6
+ directories:
7
+ - vendor
8
+ - $HOME/.composer/cache
 
 
 
9
 
10
+ php:
11
+ - 5.2
12
+ - 5.3
13
+ - 5.4
14
+ - 5.5
15
+ - 5.6
16
+ - 7.0
17
+ - hhvm
18
 
19
  env:
20
+ - TWIG_EXT=no
21
+ - TWIG_EXT=yes
22
+
23
+ install:
24
+ # Composer is not available on PHP 5.2
25
+ - if [ ${TRAVIS_PHP_VERSION:0:3} != "5.2" ]; then travis_retry composer install; fi
26
 
27
  before_script:
28
+ - if [ "$TWIG_EXT" == "yes" ]; then sh -c "cd ext/twig && phpize && ./configure --enable-twig && make && make install"; fi
29
+ - if [ "$TWIG_EXT" == "yes" ]; then echo "extension=twig.so" >> `php --ini | grep "Loaded Configuration" | sed -e "s|.*:\s*||"`; fi
30
+ - if [ ${TRAVIS_PHP_VERSION:0:3} == "5.2" ]; then sed -i.bak "s|vendor/autoload.php|test/bootstrap.php|" phpunit.xml.dist; fi
31
 
32
  matrix:
33
+ fast_finish: true
34
+ exclude:
35
+ - php: hhvm
36
+ env: TWIG_EXT=yes
37
+ allow_failures:
38
+ - php: 7.0
39
+ env: TWIG_EXT=yes
vendor/twig/twig/CHANGELOG CHANGED
@@ -1,3 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  * 1.18.1 (2015-04-19)
2
 
3
  * fixed memory leaks in the C extension
1
+ * 1.21.0 (2015-08-24)
2
+
3
+ * added deprecation notices for deprecated features
4
+ * added a deprecation "framework" for filters/functions/tests and test fixtures
5
+
6
+ * 1.20.0 (2015-08-12)
7
+
8
+ * forbid access to the Twig environment from templates and internal parts of Twig_Template
9
+ * fixed limited RCEs when in sandbox mode
10
+ * deprecated Twig_Template::getEnvironment()
11
+ * deprecated the _self variable for usage outside of the from and import tags
12
+ * added Twig_BaseNodeVisitor to ease the compatibility of node visitors
13
+ between 1.x and 2.x
14
+
15
+ * 1.19.0 (2015-07-31)
16
+
17
+ * fixed wrong error message when including an undefined template in a child template
18
+ * added support for variadic filters, functions, and tests
19
+ * added support for extra positional arguments in macros
20
+ * added ignore_missing flag to the source function
21
+ * fixed batch filter with zero items
22
+ * deprecated Twig_Environment::clearTemplateCache()
23
+ * fixed sandbox disabling when using the include function
24
+
25
+ * 1.18.2 (2015-06-06)
26
+
27
+ * fixed template/line guessing in exceptions for nested templates
28
+ * optimized the number of inodes and the size of realpath cache when using the cache
29
+
30
  * 1.18.1 (2015-04-19)
31
 
32
  * fixed memory leaks in the C extension
vendor/twig/twig/composer.json CHANGED
@@ -29,6 +29,10 @@
29
  "require": {
30
  "php": ">=5.2.7"
31
  },
 
 
 
 
32
  "autoload": {
33
  "psr-0" : {
34
  "Twig_" : "lib/"
@@ -36,7 +40,7 @@
36
  },
37
  "extra": {
38
  "branch-alias": {
39
- "dev-master": "1.18-dev"
40
  }
41
  }
42
  }
29
  "require": {
30
  "php": ">=5.2.7"
31
  },
32
+ "require-dev": {
33
+ "symfony/phpunit-bridge": "~2.7",
34
+ "symfony/debug": "~2.7"
35
+ },
36
  "autoload": {
37
  "psr-0" : {
38
  "Twig_" : "lib/"
40
  },
41
  "extra": {
42
  "branch-alias": {
43
+ "dev-master": "1.21-dev"
44
  }
45
  }
46
  }
vendor/twig/twig/doc/advanced.rst CHANGED
@@ -224,6 +224,23 @@ through your filter::
224
 
225
  $filter = new Twig_SimpleFilter('somefilter', 'somefilter', array('pre_escape' => 'html', 'is_safe' => array('html')));
226
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
227
  Dynamic Filters
228
  ~~~~~~~~~~~~~~~
229
 
@@ -250,6 +267,23 @@ arguments, but after the environment and the context. For instance, a call to
250
  ``'foo'|a_path_b()`` will result in the following arguments to be passed to
251
  the filter: ``('a', 'b', 'foo')``.
252
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
253
  Functions
254
  ---------
255
 
@@ -331,6 +365,10 @@ The ``node`` sub-node will contain an expression of ``my_value``. Node-based
331
  tests also have access to the ``arguments`` node. This node will contain the
332
  various other arguments that have been provided to your test.
333
 
 
 
 
 
334
  Tags
335
  ----
336
 
224
 
225
  $filter = new Twig_SimpleFilter('somefilter', 'somefilter', array('pre_escape' => 'html', 'is_safe' => array('html')));
226
 
227
+ Variadic Filters
228
+ ~~~~~~~~~~~~~~~~
229
+
230
+ .. versionadded:: 1.19
231
+ Support for variadic filters was added in Twig 1.19.
232
+
233
+ When a filter should accept an arbitrary number of arguments, set the
234
+ ``is_variadic`` option to ``true``; Twig will pass the extra arguments as the
235
+ last argument to the filter call as an array::
236
+
237
+ $filter = new Twig_SimpleFilter('thumbnail', function ($file, array $options = array()) {
238
+ // ...
239
+ }, array('is_variadic' => true));
240
+
241
+ Be warned that named arguments passed to a variadic filter cannot be checked
242
+ for validity as they will automatically end up in the option array.
243
+
244
  Dynamic Filters
245
  ~~~~~~~~~~~~~~~
246
 
267
  ``'foo'|a_path_b()`` will result in the following arguments to be passed to
268
  the filter: ``('a', 'b', 'foo')``.
269
 
270
+ Deprecated Filters
271
+ ~~~~~~~~~~~~~~~~~~
272
+
273
+ .. versionadded:: 1.21
274
+ Support for deprecated filters was added in Twig 1.21.
275
+
276
+ You can mark a filter as being deprecated by setting the ``deprecated`` option
277
+ to ``true``. You can also give an alternative filter that replaces the
278
+ deprecated one when that makes sense::
279
+
280
+ $filter = new Twig_SimpleFilter('obsolete', function () {
281
+ // ...
282
+ }, array('deprecated' => true, 'alternative' => 'new_one'));
283
+
284
+ When a filter is deprecated, Twig emits a deprecation notice when compiling a
285
+ template using it. See :ref:`deprecation-notices` for more information.
286
+
287
  Functions
288
  ---------
289
 
365
  tests also have access to the ``arguments`` node. This node will contain the
366
  various other arguments that have been provided to your test.
367
 
368
+ If you want to pass a variable number of positional or named arguments to the
369
+ test, set the ``is_variadic`` option to ``true``. Tests also support dynamic
370
+ name feature as filters and functions.
371
+
372
  Tags
373
  ----
374
 
vendor/twig/twig/doc/api.rst CHANGED
@@ -72,29 +72,43 @@ options as the constructor second argument::
72
 
73
  The following options are available:
74
 
75
- * ``debug``: When set to ``true``, the generated templates have a
 
 
76
  ``__toString()`` method that you can use to display the generated nodes
77
  (default to ``false``).
78
 
79
- * ``charset``: The charset used by the templates (default to ``utf-8``).
 
 
 
 
 
 
 
80
 
81
- * ``base_template_class``: The base template class to use for generated
82
- templates (default to ``Twig_Template``).
83
 
84
- * ``cache``: An absolute path where to store the compiled templates, or
85
  ``false`` to disable caching (which is the default).
86
 
87
- * ``auto_reload``: When developing with Twig, it's useful to recompile the
 
 
88
  template whenever the source code changes. If you don't provide a value for
89
  the ``auto_reload`` option, it will be determined automatically based on the
90
  ``debug`` value.
91
 
92
- * ``strict_variables``: If set to ``false``, Twig will silently ignore invalid
 
 
93
  variables (variables and or attributes/methods that do not exist) and
94
  replace them with a ``null`` value. When set to ``true``, Twig throws an
95
  exception instead (default to ``false``).
96
 
97
- * ``autoescape``: If set to ``true``, HTML auto-escaping will be enabled by
 
 
98
  default for all templates (default to ``true``).
99
 
100
  As of Twig 1.8, you can set the escaping strategy to use (``html``, ``js``,
@@ -110,7 +124,9 @@ The following options are available:
110
  strategy does not incur any overhead at runtime as auto-escaping is done at
111
  compilation time.)
112
 
113
- * ``optimizations``: A flag that indicates which optimizations to apply
 
 
114
  (default to ``-1`` -- all optimizations are enabled; set it to ``0`` to
115
  disable).
116
 
72
 
73
  The following options are available:
74
 
75
+ * ``debug`` *boolean*
76
+
77
+ When set to ``true``, the generated templates have a
78
  ``__toString()`` method that you can use to display the generated nodes
79
  (default to ``false``).
80
 
81
+ * ``charset`` *string (default to ``utf-8``)*
82
+
83
+ The charset used by the templates.
84
+
85
+ * ``base_template_class`` *string (default to ``Twig_Template``)*
86
+
87
+ The base template class to use for generated
88
+ templates.
89
 
90
+ * ``cache`` *string|false*
 
91
 
92
+ An absolute path where to store the compiled templates, or
93
  ``false`` to disable caching (which is the default).
94
 
95
+ * ``auto_reload`` *boolean*
96
+
97
+ When developing with Twig, it's useful to recompile the
98
  template whenever the source code changes. If you don't provide a value for
99
  the ``auto_reload`` option, it will be determined automatically based on the
100
  ``debug`` value.
101
 
102
+ * ``strict_variables`` *boolean*
103
+
104
+ If set to ``false``, Twig will silently ignore invalid
105
  variables (variables and or attributes/methods that do not exist) and
106
  replace them with a ``null`` value. When set to ``true``, Twig throws an
107
  exception instead (default to ``false``).
108
 
109
+ * ``autoescape`` *string|boolean*
110
+
111
+ If set to ``true``, HTML auto-escaping will be enabled by
112
  default for all templates (default to ``true``).
113
 
114
  As of Twig 1.8, you can set the escaping strategy to use (``html``, ``js``,
124
  strategy does not incur any overhead at runtime as auto-escaping is done at
125
  compilation time.)
126
 
127
+ * ``optimizations`` *integer*
128
+
129
+ A flag that indicates which optimizations to apply
130
  (default to ``-1`` -- all optimizations are enabled; set it to ``0`` to
131
  disable).
132
 
vendor/twig/twig/doc/deprecated.rst CHANGED
@@ -5,6 +5,12 @@ This document lists all deprecated features in Twig. Deprecated features are
5
  kept for backward compatibility and removed in the next major release (a
6
  feature that was deprecated in Twig 1.x is removed in Twig 2.0).
7
 
 
 
 
 
 
 
8
  Token Parsers
9
  -------------
10
 
@@ -80,6 +86,12 @@ Tests
80
  * The ``sameas`` and ``divisibleby`` tests are deprecated in favor of ``same
81
  as`` and ``divisible by`` respectively.
82
 
 
 
 
 
 
 
83
  Nodes
84
  -----
85
 
@@ -107,9 +119,30 @@ Loaders
107
  * As of Twig 1.x, ``Twig_Loader_String`` is deprecated and will be removed in
108
  2.0.
109
 
 
 
 
 
 
 
 
110
  Globals
111
  -------
112
 
113
  * As of Twig 2.x, the ability to register a global variable after the runtime
114
  or the extensions have been initialized is not possible anymore (but
115
  changing the value of an already registered global is possible).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  kept for backward compatibility and removed in the next major release (a
6
  feature that was deprecated in Twig 1.x is removed in Twig 2.0).
7
 
8
+ Deprecation Notices
9
+ -------------------
10
+
11
+ As of Twig 1.21, Twig generates deprecation notices when a template uses
12
+ deprecated features. See :ref:`deprecation-notices` for more information.
13
+
14
  Token Parsers
15
  -------------
16
 
86
  * The ``sameas`` and ``divisibleby`` tests are deprecated in favor of ``same
87
  as`` and ``divisible by`` respectively.
88
 
89
+ Tags
90
+ ----
91
+
92
+ * As of Twig 1.x, the ``raw`` tag is deprecated. You should use ``verbatim``
93
+ instead.
94
+
95
  Nodes
96
  -----
97
 
119
  * As of Twig 1.x, ``Twig_Loader_String`` is deprecated and will be removed in
120
  2.0.
121
 
122
+ Node Visitors
123
+ -------------
124
+
125
+ * Because of the removal of ``Twig_NodeInterface`` in 2.0, you need to extend
126
+ ``Twig_BaseNodeVistor`` instead of implementing ``Twig_NodeVisitorInterface``
127
+ directly to make your node visitors compatible with both Twig 1.x and 2.x.
128
+
129
  Globals
130
  -------
131
 
132
  * As of Twig 2.x, the ability to register a global variable after the runtime
133
  or the extensions have been initialized is not possible anymore (but
134
  changing the value of an already registered global is possible).
135
+
136
+ * As of Twig 1.x, the ``_self`` global variable is deprecated except for usage
137
+ in the ``from`` and the ``import`` tags. In Twig 2.0, ``_self`` is not
138
+ exposed anymore but still usable in the ``from`` and the ``import`` tags.
139
+
140
+ Miscellaneous
141
+ -------------
142
+
143
+ * As of Twig 1.x, ``Twig_Environment::clearTemplateCache()`` is deprecated and
144
+ will be removed in 2.0.
145
+
146
+ * As of Twig 1.x, ``Twig_Template::getEnvironment()`` and
147
+ ``Twig_TemplateInterface::getEnvironment()`` are deprecated and will be
148
+ removed in 2.0.
vendor/twig/twig/doc/filters/batch.rst CHANGED
@@ -43,3 +43,9 @@ The above example will be rendered as:
43
  <td>No item</td>
44
  </tr>
45
  </table>
 
 
 
 
 
 
43
  <td>No item</td>
44
  </tr>
45
  </table>
46
+
47
+ Arguments
48
+ ---------
49
+
50
+ * ``size``: The size of the batch; fractional numbers will be rounded up
51
+ * ``fill``: Used to fill in missing items
vendor/twig/twig/doc/functions/source.rst CHANGED
@@ -4,6 +4,9 @@
4
  .. versionadded:: 1.15
5
  The ``source`` function was added in Twig 1.15.
6
 
 
 
 
7
  The ``source`` function returns the content of a template without rendering it:
8
 
9
  .. code-block:: jinja
@@ -11,6 +14,13 @@ The ``source`` function returns the content of a template without rendering it:
11
  {{ source('template.html') }}
12
  {{ source(some_var) }}
13
 
 
 
 
 
 
 
 
14
  The function uses the same template loaders as the ones used to include
15
  templates. So, if you are using the filesystem loader, the templates are looked
16
  for in the paths defined by it.
@@ -19,3 +29,4 @@ Arguments
19
  ---------
20
 
21
  * ``name``: The name of the template to read
 
4
  .. versionadded:: 1.15
5
  The ``source`` function was added in Twig 1.15.
6
 
7
+ .. versionadded:: 1.18.3
8
+ The ``ignore_missing`` flag was added in Twig 1.18.3.
9
+
10
  The ``source`` function returns the content of a template without rendering it:
11
 
12
  .. code-block:: jinja
14
  {{ source('template.html') }}
15
  {{ source(some_var) }}
16
 
17
+ When you set the ``ignore_missing`` flag, Twig will return an empty string if
18
+ the template does not exist:
19
+
20
+ .. code-block:: jinja
21
+
22
+ {{ source('template.html', ignore_missing = true) }}
23
+
24
  The function uses the same template loaders as the ones used to include
25
  templates. So, if you are using the filesystem loader, the templates are looked
26
  for in the paths defined by it.
29
  ---------
30
 
31
  * ``name``: The name of the template to read
32
+ * ``ignore_missing``: Whether to ignore missing templates or not
vendor/twig/twig/doc/internals.rst CHANGED
@@ -124,7 +124,7 @@ using)::
124
  {
125
  // line 1
126
  echo "Hello ";
127
- echo twig_escape_filter($this->env, $this->getContext($context, "name"), "html", null, true);
128
  }
129
 
130
  // some more code
124
  {
125
  // line 1
126
  echo "Hello ";
127
+ echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : null), "html", null, true);
128
  }
129
 
130
  // some more code
vendor/twig/twig/doc/intro.rst CHANGED
@@ -21,10 +21,14 @@ The key-features are...
21
  * *Flexible*: Twig is powered by a flexible lexer and parser. This allows the
22
  developer to define its own custom tags and filters, and create its own DSL.
23
 
 
 
 
 
24
  Prerequisites
25
  -------------
26
 
27
- Twig needs at least **PHP 5.2.4** to run.
28
 
29
  Installation
30
  ------------
21
  * *Flexible*: Twig is powered by a flexible lexer and parser. This allows the
22
  developer to define its own custom tags and filters, and create its own DSL.
23
 
24
+ Twig is used by many Open-Source projects like Symfony, Drupal8, eZPublish,
25
+ phpBB, Piwik, OroCRM, and many frameworks have support for it as well like
26
+ Slim, Yii, Laravel, Codeigniter, and Kohana, just to name a few.
27
+
28
  Prerequisites
29
  -------------
30
 
31
+ Twig needs at least **PHP 5.2.7** to run.
32
 
33
  Installation
34
  ------------
vendor/twig/twig/doc/recipes.rst CHANGED
@@ -1,6 +1,64 @@
1
  Recipes
2
  =======
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  Making a Layout conditional
5
  ---------------------------
6
 
@@ -274,13 +332,14 @@ If you iterate over a set of files, you can pass the filename to the
274
  is enforced during template rendering (as Twig needs the context for some
275
  checks like allowed methods on objects).
276
 
277
- Refreshing modified Templates when APC is enabled and apc.stat = 0
278
- ------------------------------------------------------------------
279
 
280
- When using APC with ``apc.stat`` set to ``0`` and Twig cache enabled, clearing
281
- the template cache won't update the APC cache. To get around this, one can
282
- extend ``Twig_Environment`` and force the update of the APC cache when Twig
283
- rewrites the cache::
 
284
 
285
  class Twig_Environment_APC extends Twig_Environment
286
  {
@@ -289,7 +348,11 @@ rewrites the cache::
289
  parent::writeCacheFile($file, $content);
290
 
291
  // Compile cached file into bytecode cache
292
- apc_compile_file($file);
 
 
 
 
293
  }
294
  }
295
 
1
  Recipes
2
  =======
3
 
4
+ .. _deprecation-notices:
5
+
6
+ Displaying Deprecation Notices
7
+ ------------------------------
8
+
9
+ .. versionadded:: 1.21
10
+ This works as of Twig 1.21.
11
+
12
+ Deprecated features generate deprecation notices (via a call to the
13
+ ``trigger_error()`` PHP function). By default, they are silenced and never
14
+ displayed nor logged.
15
+
16
+ To easily remove all deprecated feature usages from your templates, write and
17
+ run a script along the lines of the following::
18
+
19
+ require_once __DIR__.'/vendor/autoload.php';
20
+
21
+ $twig = create_your_twig_env();
22
+
23
+ $deprecations = new Twig_Util_DeprecationCollector($twig);
24
+
25
+ print_r($deprecations->collectDir(__DIR__.'/templates'));
26
+
27
+ The ``collectDir()`` method compiles all templates found in a directory,
28
+ catches deprecation notices, and return them.
29
+
30
+ .. tip::
31
+
32
+ If your templates are not stored on the filesystem, use the ``collect()``
33
+ method instead which takes an ``Iterator``; the iterator must return
34
+ template names as keys and template contents as values (as done by
35
+ ``Twig_Util_TemplateDirIterator``).
36
+
37
+ However, this code won't find all deprecations (like using deprecated some Twig
38
+ classes). To catch all notices, register a custom error handler like the one
39
+ below::
40
+
41
+ $deprecations = array();
42
+ set_error_handler(function ($type, $msg) use (&$deprecations) {
43
+ if (E_USER_DEPRECATED === $type) {
44
+ $deprecations[] = $msg;
45
+ }
46
+ });
47
+
48
+ // run your application
49
+
50
+ print_r($deprecations);
51
+
52
+ Note that most deprecation notices are triggered during **compilation**, so
53
+ they won't be generated when templates are already cached.
54
+
55
+ .. tip::
56
+
57
+ If you want to manage the deprecation notices from your PHPUnit tests, have
58
+ a look at the `symfony/phpunit-bridge
59
+ <https://github.com/symfony/phpunit-bridge>`_ package, which eases the
60
+ process a lot.
61
+
62
  Making a Layout conditional
63
  ---------------------------
64
 
332
  is enforced during template rendering (as Twig needs the context for some
333
  checks like allowed methods on objects).
334
 
335
+ Refreshing modified Templates when OPcache or APC is enabled
336
+ ------------------------------------------------------------
337
 
338
+ When using OPcache with ``opcache.validate_timestamps`` set to ``0`` or APC
339
+ with ``apc.stat`` set to ``0`` and Twig cache enabled, clearing the template
340
+ cache won't update the cache. To get around this, one can extend
341
+ ``Twig_Environment`` and force the update of the cache when Twig rewrites the
342
+ cache::
343
 
344
  class Twig_Environment_APC extends Twig_Environment
345
  {
348
  parent::writeCacheFile($file, $content);
349
 
350
  // Compile cached file into bytecode cache
351
+ if (extension_loaded('Zend OPcache') && ini_get('opcache.enable')) {
352
+ opcache_compile_file($file);
353
+ } elseif (extension_loaded('apc') && ini_get('apc.enabled')) {
354
+ apc_compile_file($file);
355
+ }
356
  }
357
  }
358
 
vendor/twig/twig/doc/tags/if.rst CHANGED
@@ -37,8 +37,16 @@ You can also use ``not`` to check for values that evaluate to ``false``:
37
  <p>You are not subscribed to our mailing list.</p>
38
  {% endif %}
39
 
40
- For multiple branches ``elseif`` and ``else`` can be used like in PHP. You can use
41
- more complex ``expressions`` there too:
 
 
 
 
 
 
 
 
42
 
43
  .. code-block:: jinja
44
 
37
  <p>You are not subscribed to our mailing list.</p>
38
  {% endif %}
39
 
40
+ For multiple conditions, ``and`` and ``or`` can be used:
41
+
42
+ .. code-block:: jinja
43
+
44
+ {% if temperature > 18 and temperature < 27 %}
45
+ <p>It's a nice day for a walk in the park.</p>
46
+ {% endif %}
47
+
48
+ For multiple branches ``elseif`` and ``else`` can be used like in PHP. You can
49
+ use more complex ``expressions`` there too:
50
 
51
  .. code-block:: jinja
52
 
vendor/twig/twig/doc/tags/macro.rst CHANGED
@@ -20,6 +20,9 @@ Macros differs from native PHP functions in a few ways:
20
 
21
  * Arguments of a macro are always optional.
22
 
 
 
 
23
  But as with PHP functions, macros don't have access to the current template
24
  variables.
25
 
20
 
21
  * Arguments of a macro are always optional.
22
 
23
+ * If extra positional arguments are passed to a macro, they end up in the
24
+ special ``varargs`` variable as a list of values.
25
+
26
  But as with PHP functions, macros don't have access to the current template
27
  variables.
28
 
vendor/twig/twig/doc/tags/spaceless.rst CHANGED
@@ -33,5 +33,5 @@ quirks under some circumstances.
33
  .. tip::
34
 
35
  For more information on whitespace control, read the
36
- :doc:`dedicated<../templates>` section of the documentation and learn how
37
  you can also use the whitespace control modifier on your tags.
33
  .. tip::
34
 
35
  For more information on whitespace control, read the
36
+ :ref:`dedicated section <templates-whitespace-control>` of the documentation and learn how
37
  you can also use the whitespace control modifier on your tags.
vendor/twig/twig/doc/tags/use.rst CHANGED
@@ -74,7 +74,7 @@ is ignored. To avoid name conflicts, you can rename imported blocks:
74
 
75
  {% extends "base.html" %}
76
 
77
- {% use "blocks.html" with sidebar as base_sidebar %}
78
 
79
  {% block sidebar %}{% endblock %}
80
  {% block title %}{% endblock %}
74
 
75
  {% extends "base.html" %}
76
 
77
+ {% use "blocks.html" with sidebar as base_sidebar, title as base_title %}
78
 
79
  {% block sidebar %}{% endblock %}
80
  {% block title %}{% endblock %}
vendor/twig/twig/doc/templates.rst CHANGED
@@ -60,6 +60,9 @@ Many IDEs support syntax highlighting and auto-completion for Twig:
60
  * *Emacs* via `web-mode.el`_
61
  * *Atom* via the `PHP-twig for atom`_
62
 
 
 
 
63
  Variables
64
  ---------
65
 
@@ -93,7 +96,7 @@ access the variable attribute:
93
  don't put the braces around them.
94
 
95
  If a variable or attribute does not exist, you will receive a ``null`` value
96
- when the ``strict_variables`` option is set to ``false``; alternatively, if ``strict_variables``
97
  is set, Twig will throw an error (see :ref:`environment options<environment_options>`).
98
 
99
  .. sidebar:: Implementation
@@ -124,7 +127,7 @@ Global Variables
124
 
125
  The following variables are always available in templates:
126
 
127
- * ``_self``: references the current template;
128
  * ``_context``: references the current context;
129
  * ``_charset``: references the current charset.
130
 
@@ -541,6 +544,9 @@ macro call:
541
  <input type="{{ type }}" name="{{ name }}" value="{{ value|e }}" size="{{ size }}" />
542
  {% endmacro %}
543
 
 
 
 
544
  .. _twig-expressions:
545
 
546
  Expressions
@@ -669,6 +675,10 @@ You can combine multiple expressions with the following operators:
669
 
670
  Twig also support bitwise operators (``b-and``, ``b-xor``, and ``b-or``).
671
 
 
 
 
 
672
  Comparisons
673
  ~~~~~~~~~~~
674
 
@@ -801,6 +811,8 @@ inserted into the string:
801
  {{ "foo #{bar} baz" }}
802
  {{ "foo #{1 + 2} baz" }}
803
 
 
 
804
  Whitespace Control
805
  ------------------
806
 
@@ -873,3 +885,4 @@ Extension<creating_extensions>` chapter.
873
  .. _`web-mode.el`: http://web-mode.org/
874
  .. _`regular expressions`: http://php.net/manual/en/pcre.pattern.php
875
  .. _`PHP-twig for atom`: https://github.com/reesef/php-twig
 
60
  * *Emacs* via `web-mode.el`_
61
  * *Atom* via the `PHP-twig for atom`_
62
 
63
+ Also, `TwigFiddle`_ is an online service that allows you to execute Twig templates
64
+ from a browser; it supports all versions of Twig.
65
+
66
  Variables
67
  ---------
68
 
96
  don't put the braces around them.
97
 
98
  If a variable or attribute does not exist, you will receive a ``null`` value
99
+ when the ``strict_variables`` option is set to ``false``; alternatively, if ``strict_variables``
100
  is set, Twig will throw an error (see :ref:`environment options<environment_options>`).
101
 
102
  .. sidebar:: Implementation
127
 
128
  The following variables are always available in templates:
129
 
130
+ * ``_self``: references the current template (deprecated since Twig 1.20);
131
  * ``_context``: references the current context;
132
  * ``_charset``: references the current charset.
133
 
544
  <input type="{{ type }}" name="{{ name }}" value="{{ value|e }}" size="{{ size }}" />
545
  {% endmacro %}
546
 
547
+ If extra positional arguments are passed to a macro call, they end up in the
548
+ special ``varargs`` variable as a list of values.
549
+
550
  .. _twig-expressions:
551
 
552
  Expressions
675
 
676
  Twig also support bitwise operators (``b-and``, ``b-xor``, and ``b-or``).
677
 
678
+ .. note::
679
+
680
+ Operators are case sensitive.
681
+
682
  Comparisons
683
  ~~~~~~~~~~~
684
 
811
  {{ "foo #{bar} baz" }}
812
  {{ "foo #{1 + 2} baz" }}
813
 
814
+ .. _templates-whitespace-control:
815
+
816
  Whitespace Control
817
  ------------------
818
 
885
  .. _`web-mode.el`: http://web-mode.org/
886
  .. _`regular expressions`: http://php.net/manual/en/pcre.pattern.php
887
  .. _`PHP-twig for atom`: https://github.com/reesef/php-twig
888
+ .. _`TwigFiddle`: http://twigfiddle.com/
vendor/twig/twig/ext/twig/php_twig.h CHANGED
@@ -15,7 +15,7 @@
15
  #ifndef PHP_TWIG_H
16
  #define PHP_TWIG_H
17
 
18
- #define PHP_TWIG_VERSION "1.18.1"
19
 
20
  #include "php.h"
21
 
15
  #ifndef PHP_TWIG_H
16
  #define PHP_TWIG_H
17
 
18
+ #define PHP_TWIG_VERSION "1.21.0"
19
 
20
  #include "php.h"
21
 
vendor/twig/twig/ext/twig/twig.c CHANGED
@@ -55,7 +55,7 @@ ZEND_BEGIN_ARG_INFO_EX(twig_template_get_attribute_args, ZEND_SEND_BY_VAL, ZEND_
55
  ZEND_END_ARG_INFO()
56
 
57
  #ifndef PHP_FE_END
58
- #define PHP_FE_END { NULL, NULL, NULL, 0, 0 }
59
  #endif
60
 
61
  static const zend_function_entry twig_functions[] = {
@@ -609,6 +609,7 @@ static char *TWIG_GET_CLASS_NAME(zval *object TSRMLS_DC)
609
 
610
  static int twig_add_method_to_class(void *pDest APPLY_TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key)
611
  {
 
612
  zval *retval;
613
  char *item;
614
  size_t item_len;
@@ -619,12 +620,23 @@ static int twig_add_method_to_class(void *pDest APPLY_TSRMLS_DC, int num_args, v
619
  return 0;
620
  }
621
 
 
622
  retval = va_arg(args, zval*);
623
 
624
  item_len = strlen(mptr->common.function_name);
625
  item = estrndup(mptr->common.function_name, item_len);
626
  php_strtolower(item, item_len);
627
 
 
 
 
 
 
 
 
 
 
 
628
  add_assoc_stringl_ex(retval, item, item_len+1, item, item_len, 0);
629
 
630
  return 0;
@@ -670,7 +682,7 @@ static void twig_add_class_to_cache(zval *cache, zval *object, char *class_name
670
  array_init(class_methods);
671
  array_init(class_properties);
672
  // add all methods to self::cache[$class]['methods']
673
- zend_hash_apply_with_arguments(&class_ce->function_table APPLY_TSRMLS_CC, twig_add_method_to_class, 1, class_methods);
674
  zend_hash_apply_with_arguments(&class_ce->properties_info APPLY_TSRMLS_CC, twig_add_property_to_class, 2, &class_ce, class_properties);
675
 
676
  add_assoc_zval(class_info, "methods", class_methods);
@@ -779,12 +791,18 @@ PHP_FUNCTION(twig_template_get_attributes)
779
  $message = sprintf('Impossible to access a key "%s" on an object of class "%s" that does not implement ArrayAccess interface', $item, get_class($object));
780
  } elseif (is_array($object)) {
781
  if (empty($object)) {
782
- $message = sprintf('Key "%s" does not exist as the array is empty', $arrayItem);
783
  } else {
784
- $message = sprintf('Key "%s" for array with keys "%s" does not exist', $arrayItem, implode(', ', array_keys($object)));
785
  }
786
  } elseif (Twig_Template::ARRAY_CALL === $type) {
787
- $message = sprintf('Impossible to access a key ("%s") on a %s variable ("%s")', $item, gettype($object), $object);
 
 
 
 
 
 
788
  } else {
789
  $message = sprintf('Impossible to access an attribute ("%s") on a %s variable ("%s")', $item, gettype($object), $object);
790
  }
@@ -807,12 +825,21 @@ PHP_FUNCTION(twig_template_get_attributes)
807
  } else {
808
  char *type_name = zend_zval_type_name(object);
809
  Z_ADDREF_P(object);
810
- convert_to_string(object);
811
- TWIG_RUNTIME_ERROR(template TSRMLS_CC,
812
- (strcmp("array", type) == 0)
813
- ? "Impossible to access a key (\"%s\") on a %s variable (\"%s\")"
814
- : "Impossible to access an attribute (\"%s\") on a %s variable (\"%s\")",
815
- item, type_name, Z_STRVAL_P(object));
 
 
 
 
 
 
 
 
 
816
  zval_ptr_dtor(&object);
817
  }
818
  efree(item);
@@ -836,7 +863,14 @@ PHP_FUNCTION(twig_template_get_attributes)
836
  if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
837
  return null;
838
  }
839
- throw new Twig_Error_Runtime(sprintf('Impossible to invoke a method ("%s") on a %s variable ("%s")', $item, gettype($object), $object), -1, $this->getTemplateName());
 
 
 
 
 
 
 
840
  }
841
  */
842
  if (ignoreStrictCheck || !TWIG_CALL_BOOLEAN(TWIG_PROPERTY_CHAR(template, "env" TSRMLS_CC), "isStrictVariables" TSRMLS_CC)) {
@@ -846,9 +880,15 @@ PHP_FUNCTION(twig_template_get_attributes)
846
 
847
  type_name = zend_zval_type_name(object);
848
  Z_ADDREF_P(object);
849
- convert_to_string_ex(&object);
 
850
 
851
- TWIG_RUNTIME_ERROR(template TSRMLS_CC, "Impossible to invoke a method (\"%s\") on a %s variable (\"%s\")", item, type_name, Z_STRVAL_P(object));
 
 
 
 
 
852
 
853
  zval_ptr_dtor(&object);
854
  efree(item);
@@ -870,7 +910,7 @@ PHP_FUNCTION(twig_template_get_attributes)
870
 
871
  /*
872
  // object property
873
- if (Twig_Template::METHOD_CALL !== $type) {
874
  if (isset($object->$item) || array_key_exists((string) $item, $object)) {
875
  if ($isDefinedTest) {
876
  return true;
@@ -884,7 +924,7 @@ PHP_FUNCTION(twig_template_get_attributes)
884
  }
885
  }
886
  */
887
- if (strcmp("method", type) != 0) {
888
  zval *tmp_properties, *tmp_item;
889
 
890
  tmp_properties = TWIG_GET_ARRAY_ELEMENT(tmp_class, "properties", strlen("properties") TSRMLS_CC);
@@ -911,7 +951,23 @@ PHP_FUNCTION(twig_template_get_attributes)
911
  /*
912
  // object method
913
  if (!isset(self::$cache[$class]['methods'])) {
914
- self::$cache[$class]['methods'] = array_change_key_case(array_flip(get_class_methods($object)));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
915
  }
916
 
917
  $call = false;
55
  ZEND_END_ARG_INFO()
56
 
57
  #ifndef PHP_FE_END
58
+ #define PHP_FE_END { NULL, NULL, NULL}
59
  #endif
60
 
61
  static const zend_function_entry twig_functions[] = {
609
 
610
  static int twig_add_method_to_class(void *pDest APPLY_TSRMLS_DC, int num_args, va_list args, zend_hash_key *hash_key)
611
  {
612
+ zend_class_entry *ce;
613
  zval *retval;
614
  char *item;
615
  size_t item_len;
620
  return 0;
621
  }
622
 
623
+ ce = *va_arg(args, zend_class_entry**);
624
  retval = va_arg(args, zval*);
625
 
626
  item_len = strlen(mptr->common.function_name);
627
  item = estrndup(mptr->common.function_name, item_len);
628
  php_strtolower(item, item_len);
629
 
630
+ if (strcmp("getenvironment", item) == 0) {
631
+ zend_class_entry **twig_template_ce;
632
+ if (zend_lookup_class("Twig_Template", strlen("Twig_Template"), &twig_template_ce TSRMLS_CC) == FAILURE) {
633
+ return 0;
634
+ }
635
+ if (instanceof_function(ce, *twig_template_ce TSRMLS_CC)) {
636
+ return 0;
637
+ }
638
+ }
639
+
640
  add_assoc_stringl_ex(retval, item, item_len+1, item, item_len, 0);
641
 
642
  return 0;
682
  array_init(class_methods);
683
  array_init(class_properties);
684
  // add all methods to self::cache[$class]['methods']
685
+ zend_hash_apply_with_arguments(&class_ce->function_table APPLY_TSRMLS_CC, twig_add_method_to_class, 2, &class_ce, class_methods);
686
  zend_hash_apply_with_arguments(&class_ce->properties_info APPLY_TSRMLS_CC, twig_add_property_to_class, 2, &class_ce, class_properties);
687
 
688
  add_assoc_zval(class_info, "methods", class_methods);
791
  $message = sprintf('Impossible to access a key "%s" on an object of class "%s" that does not implement ArrayAccess interface', $item, get_class($object));
792
  } elseif (is_array($object)) {
793
  if (empty($object)) {
794
+ $message = sprintf('Key "%s" does not exist as the array is empty', $arrayItem);
795
  } else {
796
+ $message = sprintf('Key "%s" for array with keys "%s" does not exist', $arrayItem, implode(', ', array_keys($object)));
797
  }
798
  } elseif (Twig_Template::ARRAY_CALL === $type) {
799
+ if (null === $object) {
800
+ $message = sprintf('Impossible to access a key ("%s") on a null variable', $item);
801
+ } else {
802
+ $message = sprintf('Impossible to access a key ("%s") on a %s variable ("%s")', $item, gettype($object), $object);
803
+ }
804
+ } elseif (null === $object) {
805
+ $message = sprintf('Impossible to access an attribute ("%s") on a null variable', $item);
806
  } else {
807
  $message = sprintf('Impossible to access an attribute ("%s") on a %s variable ("%s")', $item, gettype($object), $object);
808
  }
825
  } else {
826
  char *type_name = zend_zval_type_name(object);
827
  Z_ADDREF_P(object);
828
+ if (Z_TYPE_P(object) == IS_NULL) {
829
+ convert_to_string(object);
830
+ TWIG_RUNTIME_ERROR(template TSRMLS_CC,
831
+ (strcmp("array", type) == 0)
832
+ ? "Impossible to access a key (\"%s\") on a %s variable"
833
+ : "Impossible to access an attribute (\"%s\") on a %s variable",
834
+ item, type_name);
835
+ } else {
836
+ convert_to_string(object);
837
+ TWIG_RUNTIME_ERROR(template TSRMLS_CC,
838
+ (strcmp("array", type) == 0)
839
+ ? "Impossible to access a key (\"%s\") on a %s variable (\"%s\")"
840
+ : "Impossible to access an attribute (\"%s\") on a %s variable (\"%s\")",
841
+ item, type_name, Z_STRVAL_P(object));
842
+ }
843
  zval_ptr_dtor(&object);
844
  }
845
  efree(item);
863
  if ($ignoreStrictCheck || !$this->env->isStrictVariables()) {
864
  return null;
865
  }
866
+
867
+ if (null === $object) {
868
+ $message = sprintf('Impossible to invoke a method ("%s") on a null variable', $item);
869
+ } else {
870
+ $message = sprintf('Impossible to invoke a method ("%s") on a %s variable ("%s")', $item, gettype($object), $object);
871
+ }
872
+
873
+ throw new Twig_Error_Runtime($message, -1, $this->getTemplateName());
874
  }
875
  */
876
  if (ignoreStrictCheck || !TWIG_CALL_BOOLEAN(TWIG_PROPERTY_CHAR(template, "env" TSRMLS_CC), "isStrictVariables" TSRMLS_CC)) {
880
 
881
  type_name = zend_zval_type_name(object);
882
  Z_ADDREF_P(object);
883
+ if (Z_TYPE_P(object) == IS_NULL) {
884
+ convert_to_string_ex(&object);
885
 
886
+ TWIG_RUNTIME_ERROR(template TSRMLS_CC, "Impossible to invoke a method (\"%s\") on a %s variable", item, type_name);
887
+ } else {
888
+ convert_to_string_ex(&object);
889
+
890
+ TWIG_RUNTIME_ERROR(template TSRMLS_CC, "Impossible to invoke a method (\"%s\") on a %s variable (\"%s\")", item, type_name, Z_STRVAL_P(object));
891
+ }
892
 
893
  zval_ptr_dtor(&object);
894
  efree(item);
910
 
911
  /*
912
  // object property
913
+ if (Twig_Template::METHOD_CALL !== $type && !$object instanceof Twig_Template) {
914
  if (isset($object->$item) || array_key_exists((string) $item, $object)) {
915
  if ($isDefinedTest) {
916
  return true;
924
  }
925
  }
926
  */
927
+ if (strcmp("method", type) != 0 && !TWIG_INSTANCE_OF_USERLAND(object, "Twig_Template" TSRMLS_CC)) {
928
  zval *tmp_properties, *tmp_item;
929
 
930
  tmp_properties = TWIG_GET_ARRAY_ELEMENT(tmp_class, "properties", strlen("properties") TSRMLS_CC);
951
  /*
952
  // object method
953
  if (!isset(self::$cache[$class]['methods'])) {
954
+ if ($object instanceof self) {
955
+ $ref = new ReflectionClass($class);
956
+ $methods = array();
957
+
958
+ foreach ($ref->getMethods(ReflectionMethod::IS_PUBLIC) as $refMethod) {
959
+ $methodName = strtolower($refMethod->name);
960
+
961
+ // Accessing the environment from templates is forbidden to prevent untrusted changes to the environment
962
+ if ('getenvironment' !== $methodName) {
963
+ $methods[$methodName] = true;
964
+ }
965
+ }
966
+
967
+ self::$cache[$class]['methods'] = $methods;
968
+ } else {
969
+ self::$cache[$class]['methods'] = array_change_key_case(array_flip(get_class_methods($object)));
970
+ }
971
  }
972
 
973
  $call = false;
vendor/twig/twig/lib/Twig/Autoloader.php CHANGED
@@ -9,10 +9,14 @@
9
  * file that was distributed with this source code.
10
  */
11
 
 
 
12
  /**
13
  * Autoloads Twig classes.
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
 
 
16
  */
17
  class Twig_Autoloader
18
  {
@@ -23,6 +27,8 @@ class Twig_Autoloader
23
  */
24
  public static function register($prepend = false)
25
  {
 
 
26
  if (PHP_VERSION_ID < 50300) {
27
  spl_autoload_register(array(__CLASS__, 'autoload'));
28
  } else {
9
  * file that was distributed with this source code.
10
  */
11
 
12
+ @trigger_error('The Twig_Autoloader class is deprecated and will be removed in 2.0. Use Composer instead.', E_USER_DEPRECATED);
13
+
14
  /**
15
  * Autoloads Twig classes.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
18
+ *
19
+ * @deprecated Use Composer instead. Will be removed in Twig 2.0.
20
  */
21
  class Twig_Autoloader
22
  {
27
  */
28
  public static function register($prepend = false)
29
  {
30
+ @trigger_error('Using Twig_Autoloader is deprecated. Use Composer instead.', E_USER_DEPRECATED);
31
+
32
  if (PHP_VERSION_ID < 50300) {
33
  spl_autoload_register(array(__CLASS__, 'autoload'));
34
  } else {
vendor/twig/twig/lib/Twig/BaseNodeVisitor.php ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of Twig.
5
+ *
6
+ * (c) Fabien Potencier
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ /**
13
+ * Twig_BaseNodeVisitor can be used to make node visitors compatible with Twig 1.x and 2.x.
14
+ *
15
+ * @author Fabien Potencier <fabien@symfony.com>
16
+ */
17
+ abstract class Twig_BaseNodeVisitor implements Twig_NodeVisitorInterface
18
+ {
19
+ /**
20
+ * {@inheritdoc}
21
+ */
22
+ final public function enterNode(Twig_NodeInterface $node, Twig_Environment $env)
23
+ {
24
+ if (!$node instanceof Twig_Node) {
25
+ throw new LogicException('Twig_BaseNodeVisitor only supports Twig_Node instances.');
26
+ }
27
+
28
+ return $this->doEnterNode($node, $env);
29
+ }
30
+
31
+ /**
32
+ * {@inheritdoc}
33
+ */
34
+ final public function leaveNode(Twig_NodeInterface $node, Twig_Environment $env)
35
+ {
36
+ if (!$node instanceof Twig_Node) {
37
+ throw new LogicException('Twig_BaseNodeVisitor only supports Twig_Node instances.');
38
+ }
39
+
40
+ return $this->doLeaveNode($node, $env);
41
+ }
42
+
43
+ /**
44
+ * Called before child nodes are visited.
45
+ *
46
+ * @param Twig_Node $node The node to visit
47
+ * @param Twig_Environment $env The Twig environment instance
48
+ *
49
+ * @return Twig_Node The modified node
50
+ */
51
+ abstract protected function doEnterNode(Twig_Node $node, Twig_Environment $env);
52
+
53
+ /**
54
+ * Called after child nodes are visited.
55
+ *
56
+ * @param Twig_Node $node The node to visit
57
+ * @param Twig_Environment $env The Twig environment instance
58
+ *
59
+ * @return Twig_Node|false The modified node or false if the node must be removed
60
+ */
61
+ abstract protected function doLeaveNode(Twig_Node $node, Twig_Environment $env);
62
+ }
vendor/twig/twig/lib/Twig/Compiler.php CHANGED
@@ -21,7 +21,7 @@ class Twig_Compiler implements Twig_CompilerInterface
21
  protected $source;
22
  protected $indentation;
23
  protected $env;
24
- protected $debugInfo;
25
  protected $sourceOffset;
26
  protected $sourceLine;
27
  protected $filename;
@@ -34,7 +34,6 @@ class Twig_Compiler implements Twig_CompilerInterface
34
  public function __construct(Twig_Environment $env)
35
  {
36
  $this->env = $env;
37
- $this->debugInfo = array();
38
  }
39
 
40
  public function getFilename()
21
  protected $source;
22
  protected $indentation;
23
  protected $env;
24
+ protected $debugInfo = array();
25
  protected $sourceOffset;
26
  protected $sourceLine;
27
  protected $filename;
34
  public function __construct(Twig_Environment $env)
35
  {
36
  $this->env = $env;
 
37
  }
38
 
39
  public function getFilename()
vendor/twig/twig/lib/Twig/Environment.php CHANGED
@@ -16,7 +16,7 @@
16
  */
17
  class Twig_Environment
18
  {
19
- const VERSION = '1.18.1';
20
 
21
  protected $charset;
22
  protected $loader;
@@ -34,15 +34,15 @@ class Twig_Environment
34
  protected $tests;
35
  protected $functions;
36
  protected $globals;
37
- protected $runtimeInitialized;
38
- protected $extensionInitialized;
39
  protected $loadedTemplates;
40
  protected $strictVariables;
41
  protected $unaryOperators;
42
  protected $binaryOperators;
43
  protected $templateClassPrefix = '__TwigTemplate_';
44
- protected $functionCallbacks;
45
- protected $filterCallbacks;
46
  protected $staging;
47
 
48
  /**
@@ -86,33 +86,31 @@ class Twig_Environment
86
  {
87
  if (null !== $loader) {
88
  $this->setLoader($loader);
 
 
89
  }
90
 
91
  $options = array_merge(array(
92
- 'debug' => false,
93
- 'charset' => 'UTF-8',
94
  'base_template_class' => 'Twig_Template',
95
- 'strict_variables' => false,
96
- 'autoescape' => 'html',
97
- 'cache' => false,
98
- 'auto_reload' => null,
99
- 'optimizations' => -1,
100
  ), $options);
101
 
102
- $this->debug = (bool) $options['debug'];
103
- $this->charset = strtoupper($options['charset']);
104
- $this->baseTemplateClass = $options['base_template_class'];
105
- $this->autoReload = null === $options['auto_reload'] ? $this->debug : (bool) $options['auto_reload'];
106
- $this->strictVariables = (bool) $options['strict_variables'];
107
- $this->runtimeInitialized = false;
108
  $this->setCache($options['cache']);
109
- $this->functionCallbacks = array();
110
- $this->filterCallbacks = array();
111
 
112
  $this->addExtension(new Twig_Extension_Core());
113
  $this->addExtension(new Twig_Extension_Escaper($options['autoescape']));
114
  $this->addExtension(new Twig_Extension_Optimizer($options['optimizations']));
115
- $this->extensionInitialized = false;
116
  $this->staging = new Twig_Extension_Staging();
117
  }
118
 
@@ -250,7 +248,7 @@ class Twig_Environment
250
 
251
  $class = substr($this->getTemplateClass($name), strlen($this->templateClassPrefix));
252
 
253
- return $this->getCache().'/'.substr($class, 0, 2).'/'.substr($class, 2, 2).'/'.substr($class, 4).'.php';
254
  }
255
 
256
  /**
@@ -351,8 +349,7 @@ class Twig_Environment
351
  *
352
  * This method should not be used as a generic way to load templates.
353
  *
354
- * @param string $name The template name
355
- * @param int $index The index if it is an embedded template
356
  *
357
  * @return Twig_Template A template instance representing the given template name
358
  *
@@ -444,9 +441,13 @@ class Twig_Environment
444
 
445
  /**
446
  * Clears the internal template cache.
 
 
447
  */
448
  public function clearTemplateCache()
449
  {
 
 
450
  $this->loadedTemplates = array();
451
  }
452
 
@@ -483,7 +484,7 @@ class Twig_Environment
483
  /**
484
  * Sets the Lexer instance.
485
  *
486
- * @param Twig_LexerInterface A Twig_LexerInterface instance
487
  */
488
  public function setLexer(Twig_LexerInterface $lexer)
489
  {
@@ -522,7 +523,7 @@ class Twig_Environment
522
  /**
523
  * Sets the Parser instance.
524
  *
525
- * @param Twig_ParserInterface A Twig_ParserInterface instance
526
  */
527
  public function setParser(Twig_ParserInterface $parser)
528
  {
@@ -710,6 +711,8 @@ class Twig_Environment
710
  */
711
  public function removeExtension($name)
712
  {
 
 
713
  if ($this->extensionInitialized) {
714
  throw new LogicException(sprintf('Unable to remove extension "%s" as extensions have already been initialized.', $name));
715
  }
@@ -829,6 +832,8 @@ class Twig_Environment
829
  if ($name instanceof Twig_SimpleFilter) {
830
  $filter = $name;
831
  $name = $filter->getName();
 
 
832
  }
833
 
834
  if ($this->extensionInitialized) {
@@ -918,6 +923,8 @@ class Twig_Environment
918
  if ($name instanceof Twig_SimpleTest) {
919
  $test = $name;
920
  $name = $test->getName();
 
 
921
  }
922
 
923
  if ($this->extensionInitialized) {
@@ -976,6 +983,8 @@ class Twig_Environment
976
  if ($name instanceof Twig_SimpleFunction) {
977
  $function = $name;
978
  $name = $function->getName();
 
 
979
  }
980
 
981
  if ($this->extensionInitialized) {
@@ -1066,11 +1075,11 @@ class Twig_Environment
1066
  $this->globals = $this->initGlobals();
1067
  }
1068
 
1069
- /* This condition must be uncommented in Twig 2.0
1070
  if (!array_key_exists($name, $this->globals)) {
1071
- throw new LogicException(sprintf('Unable to add global "%s" as the runtime or the extensions have already been initialized.', $name));
 
 
1072
  }
1073
- */
1074
  }
1075
 
1076
  if ($this->extensionInitialized || $this->runtimeInitialized) {
@@ -1185,7 +1194,7 @@ class Twig_Environment
1185
  }
1186
 
1187
  $this->extensionInitialized = true;
1188
- $this->parsers = new Twig_TokenParserBroker();
1189
  $this->filters = array();
1190
  $this->functions = array();
1191
  $this->tests = array();
@@ -1203,11 +1212,10 @@ class Twig_Environment
1203
  {
1204
  // filters
1205
  foreach ($extension->getFilters() as $name => $filter) {
1206
- if ($name instanceof Twig_SimpleFilter) {
1207
- $filter = $name;
1208
- $name = $filter->getName();
1209
- } elseif ($filter instanceof Twig_SimpleFilter) {
1210
  $name = $filter->getName();
 
 
1211
  }
1212
 
1213
  $this->filters[$name] = $filter;
@@ -1215,11 +1223,10 @@ class Twig_Environment
1215
 
1216
  // functions
1217
  foreach ($extension->getFunctions() as $name => $function) {
1218
- if ($name instanceof Twig_SimpleFunction) {
1219
- $function = $name;
1220
- $name = $function->getName();
1221
- } elseif ($function instanceof Twig_SimpleFunction) {
1222
  $name = $function->getName();
 
 
1223
  }
1224
 
1225
  $this->functions[$name] = $function;
@@ -1227,11 +1234,10 @@ class Twig_Environment
1227
 
1228
  // tests
1229
  foreach ($extension->getTests() as $name => $test) {
1230
- if ($name instanceof Twig_SimpleTest) {
1231
- $test = $name;
1232
- $name = $test->getName();
1233
- } elseif ($test instanceof Twig_SimpleTest) {
1234
  $name = $test->getName();
 
 
1235
  }
1236
 
1237
  $this->tests[$name] = $test;
@@ -1242,6 +1248,8 @@ class Twig_Environment
1242
  if ($parser instanceof Twig_TokenParserInterface) {
1243
  $this->parsers->addTokenParser($parser);
1244
  } elseif ($parser instanceof Twig_TokenParserBrokerInterface) {
 
 
1245
  $this->parsers->addTokenParserBroker($parser);
1246
  } else {
1247
  throw new LogicException('getTokenParsers() must return an array of Twig_TokenParserInterface or Twig_TokenParserBrokerInterface instances');
@@ -1271,11 +1279,11 @@ class Twig_Environment
1271
  if (false === @mkdir($dir, 0777, true)) {
1272
  clearstatcache(false, $dir);
1273
  if (!is_dir($dir)) {
1274
- throw new RuntimeException(sprintf("Unable to create the cache directory (%s).", $dir));
1275
  }
1276
  }
1277
  } elseif (!is_writable($dir)) {
1278
- throw new RuntimeException(sprintf("Unable to write in the cache directory (%s).", $dir));
1279
  }
1280
 
1281
  $tmpFile = tempnam($dir, basename($file));
16
  */
17
  class Twig_Environment
18
  {
19
+ const VERSION = '1.21.0';
20
 
21
  protected $charset;
22
  protected $loader;
34
  protected $tests;
35
  protected $functions;
36
  protected $globals;
37
+ protected $runtimeInitialized = false;
38
+ protected $extensionInitialized = false;
39
  protected $loadedTemplates;
40
  protected $strictVariables;
41
  protected $unaryOperators;
42
  protected $binaryOperators;
43
  protected $templateClassPrefix = '__TwigTemplate_';
44
+ protected $functionCallbacks = array();
45
+ protected $filterCallbacks = array();
46
  protected $staging;
47
 
48
  /**
86
  {
87
  if (null !== $loader) {
88
  $this->setLoader($loader);
89
+ } else {
90
+ @trigger_error('Not passing a Twig_LoaderInterface as the first constructor argument of Twig_Environment is deprecated.', E_USER_DEPRECATED);
91
  }
92
 
93
  $options = array_merge(array(
94
+ 'debug' => false,
95
+ 'charset' => 'UTF-8',
96
  'base_template_class' => 'Twig_Template',
97
+ 'strict_variables' => false,
98
+ 'autoescape' => 'html',
99
+ 'cache' => false,
100
+ 'auto_reload' => null,
101
+ 'optimizations' => -1,
102
  ), $options);
103
 
104
+ $this->debug = (bool) $options['debug'];
105
+ $this->charset = strtoupper($options['charset']);
106
+ $this->baseTemplateClass = $options['base_template_class'];
107
+ $this->autoReload = null === $options['auto_reload'] ? $this->debug : (bool) $options['auto_reload'];
108
+ $this->strictVariables = (bool) $options['strict_variables'];
 
109
  $this->setCache($options['cache']);
 
 
110
 
111
  $this->addExtension(new Twig_Extension_Core());
112
  $this->addExtension(new Twig_Extension_Escaper($options['autoescape']));
113
  $this->addExtension(new Twig_Extension_Optimizer($options['optimizations']));
 
114
  $this->staging = new Twig_Extension_Staging();
115
  }
116
 
248
 
249
  $class = substr($this->getTemplateClass($name), strlen($this->templateClassPrefix));
250
 
251
+ return $this->getCache().'/'.$class[0].'/'.$class[1].'/'.$class.'.php';
252
  }
253
 
254
  /**
349
  *
350
  * This method should not be used as a generic way to load templates.
351
  *
352
+ * @param string $template The template name
 
353
  *
354
  * @return Twig_Template A template instance representing the given template name
355
  *
441
 
442
  /**
443
  * Clears the internal template cache.
444
+ *
445
+ * @deprecated since 1.18.3 (to be removed in 2.0)
446
  */
447
  public function clearTemplateCache()
448
  {
449
+ @trigger_error(sprintf('The %s method is deprecated and will be removed in Twig 2.0.', __METHOD__), E_USER_DEPRECATED);
450
+
451
  $this->loadedTemplates = array();
452
  }
453
 
484
  /**
485
  * Sets the Lexer instance.
486
  *
487
+ * @param Twig_LexerInterface $lexer A Twig_LexerInterface instance
488
  */
489
  public function setLexer(Twig_LexerInterface $lexer)
490
  {
523
  /**
524
  * Sets the Parser instance.
525
  *
526
+ * @param Twig_ParserInterface $parser A Twig_ParserInterface instance
527
  */
528
  public function setParser(Twig_ParserInterface $parser)
529
  {
711
  */
712
  public function removeExtension($name)
713
  {
714
+ @trigger_error(sprintf('The %s method is deprecated and will be removed in Twig 2.0.', __METHOD__), E_USER_DEPRECATED);
715
+
716
  if ($this->extensionInitialized) {
717
  throw new LogicException(sprintf('Unable to remove extension "%s" as extensions have already been initialized.', $name));
718
  }
832
  if ($name instanceof Twig_SimpleFilter) {
833
  $filter = $name;
834
  $name = $filter->getName();
835
+ } else {
836
+ @trigger_error(sprintf('Passing a name as a first argument to the %s method is deprecated. Pass an instance of "Twig_SimpleFilter" instead when defining filter "%s".', __METHOD__, $name), E_USER_DEPRECATED);
837
  }
838
 
839
  if ($this->extensionInitialized) {
923
  if ($name instanceof Twig_SimpleTest) {
924
  $test = $name;
925
  $name = $test->getName();
926
+ } else {
927
+ @trigger_error(sprintf('Passing a name as a first argument to the %s method is deprecated. Pass an instance of "Twig_SimpleTest" instead when defining test "%s".', __METHOD__, $name), E_USER_DEPRECATED);
928
  }
929
 
930
  if ($this->extensionInitialized) {
983
  if ($name instanceof Twig_SimpleFunction) {
984
  $function = $name;
985
  $name = $function->getName();
986
+ } else {
987
+ @trigger_error(sprintf('Passing a name as a first argument to the %s method is deprecated. Pass an instance of "Twig_SimpleFunction" instead when defining function "%s".', __METHOD__, $name), E_USER_DEPRECATED);
988
  }
989
 
990
  if ($this->extensionInitialized) {
1075
  $this->globals = $this->initGlobals();
1076
  }
1077
 
 
1078
  if (!array_key_exists($name, $this->globals)) {
1079
+ // The deprecation notice must be turned into the following exception in Twig 2.0
1080
+ @trigger_error(sprintf('Registering global variable "%s" at runtime or when the extensions have already been initialized is deprecated.', $name), E_USER_DEPRECATED);
1081
+ //throw new LogicException(sprintf('Unable to add global "%s" as the runtime or the extensions have already been initialized.', $name));
1082
  }
 
1083
  }
1084
 
1085
  if ($this->extensionInitialized || $this->runtimeInitialized) {
1194
  }
1195
 
1196
  $this->extensionInitialized = true;
1197
+ $this->parsers = new Twig_TokenParserBroker(array(), array(), false);
1198
  $this->filters = array();
1199
  $this->functions = array();
1200
  $this->tests = array();
1212
  {
1213
  // filters
1214
  foreach ($extension->getFilters() as $name => $filter) {
1215
+ if ($filter instanceof Twig_SimpleFilter) {
 
 
 
1216
  $name = $filter->getName();
1217
+ } else {
1218
+ @trigger_error(sprintf('Using an instance of "%s" for filter "%s" is deprecated. Use Twig_SimpleFilter instead.', get_class($filter), $name), E_USER_DEPRECATED);
1219
  }
1220
 
1221
  $this->filters[$name] = $filter;
1223
 
1224
  // functions
1225
  foreach ($extension->getFunctions() as $name => $function) {
1226
+ if ($function instanceof Twig_SimpleFunction) {
 
 
 
1227
  $name = $function->getName();
1228
+ } else {
1229
+ @trigger_error(sprintf('Using an instance of "%s" for function "%s" is deprecated. Use Twig_SimpleFunction instead.', get_class($function), $name), E_USER_DEPRECATED);
1230
  }
1231
 
1232
  $this->functions[$name] = $function;
1234
 
1235
  // tests
1236
  foreach ($extension->getTests() as $name => $test) {
1237
+ if ($test instanceof Twig_SimpleTest) {
 
 
 
1238
  $name = $test->getName();
1239
+ } else {
1240
+ @trigger_error(sprintf('Using an instance of "%s" for test "%s" is deprecated. Use Twig_SimpleTest instead.', get_class($test), $name), E_USER_DEPRECATED);
1241
  }
1242
 
1243
  $this->tests[$name] = $test;
1248
  if ($parser instanceof Twig_TokenParserInterface) {
1249
  $this->parsers->addTokenParser($parser);
1250
  } elseif ($parser instanceof Twig_TokenParserBrokerInterface) {
1251
+ @trigger_error('Registering a Twig_TokenParserBrokerInterface instance is deprecated.', E_USER_DEPRECATED);
1252
+
1253
  $this->parsers->addTokenParserBroker($parser);
1254
  } else {
1255
  throw new LogicException('getTokenParsers() must return an array of Twig_TokenParserInterface or Twig_TokenParserBrokerInterface instances');
1279
  if (false === @mkdir($dir, 0777, true)) {
1280
  clearstatcache(false, $dir);
1281
  if (!is_dir($dir)) {
1282
+ throw new RuntimeException(sprintf('Unable to create the cache directory (%s).', $dir));
1283
  }
1284
  }
1285
  } elseif (!is_writable($dir)) {
1286
+ throw new RuntimeException(sprintf('Unable to write in the cache directory (%s).', $dir));
1287
  }
1288
 
1289
  $tmpFile = tempnam($dir, basename($file));
vendor/twig/twig/lib/Twig/ExpressionParser.php CHANGED
@@ -315,7 +315,7 @@ class Twig_ExpressionParser
315
  {
316
  switch ($name) {
317
  case 'parent':
318
- $args = $this->parseArguments();
319
  if (!count($this->parser->getBlockStack())) {
320
  throw new Twig_Error_Syntax('Calling "parent" outside a block is forbidden', $line, $this->parser->getFilename());
321
  }
@@ -387,7 +387,13 @@ class Twig_ExpressionParser
387
  throw new Twig_Error_Syntax(sprintf('Dynamic macro names are not supported (called on "%s")', $node->getAttribute('name')), $token->getLine(), $this->parser->getFilename());
388
  }
389
 
390
- $node = new Twig_Node_Expression_MethodCall($node, 'get'.$arg->getAttribute('value'), $arguments, $lineno);
 
 
 
 
 
 
391
  $node->setAttribute('safe', true);
392
 
393
  return $node;
@@ -468,6 +474,10 @@ class Twig_ExpressionParser
468
  *
469
  * @param bool $namedArguments Whether to allow named arguments or not
470
  * @param bool $definition Whether we are parsing arguments for a function definition
 
 
 
 
471
  */
472
  public function parseArguments($namedArguments = false, $definition = false)
473
  {
@@ -568,6 +578,16 @@ class Twig_ExpressionParser
568
  throw new Twig_Error_Syntax($message, $line, $this->parser->getFilename());
569
  }
570
 
 
 
 
 
 
 
 
 
 
 
571
  if ($function instanceof Twig_SimpleFunction) {
572
  return $function->getNodeClass();
573
  }
@@ -588,6 +608,16 @@ class Twig_ExpressionParser
588
  throw new Twig_Error_Syntax($message, $line, $this->parser->getFilename());
589
  }
590
 
 
 
 
 
 
 
 
 
 
 
591
  if ($filter instanceof Twig_SimpleFilter) {
592
  return $filter->getNodeClass();
593
  }
315
  {
316
  switch ($name) {
317
  case 'parent':
318
+ $this->parseArguments();
319
  if (!count($this->parser->getBlockStack())) {
320
  throw new Twig_Error_Syntax('Calling "parent" outside a block is forbidden', $line, $this->parser->getFilename());
321
  }
387
  throw new Twig_Error_Syntax(sprintf('Dynamic macro names are not supported (called on "%s")', $node->getAttribute('name')), $token->getLine(), $this->parser->getFilename());
388
  }
389
 
390
+ $name = $arg->getAttribute('value');
391
+
392
+ if ($this->parser->isReservedMacroName($name)) {
393
+ throw new Twig_Error_Syntax(sprintf('"%s" cannot be called as macro as it is a reserved keyword', $name), $token->getLine(), $this->parser->getFilename());
394
+ }
395
+
396
+ $node = new Twig_Node_Expression_MethodCall($node, 'get'.$name, $arguments, $lineno);
397
  $node->setAttribute('safe', true);
398
 
399
  return $node;
474
  *
475
  * @param bool $namedArguments Whether to allow named arguments or not
476
  * @param bool $definition Whether we are parsing arguments for a function definition
477
+ *
478
+ * @return Twig_Node
479
+ *
480
+ * @throws Twig_Error_Syntax
481
  */
482
  public function parseArguments($namedArguments = false, $definition = false)
483
  {
578
  throw new Twig_Error_Syntax($message, $line, $this->parser->getFilename());
579
  }
580
 
581
+ if ($function instanceof Twig_SimpleFunction && $function->isDeprecated()) {
582
+ $message = sprintf('Twig Function "%s" is deprecated', $function->getName());
583
+ if ($test->getAlternative()) {
584
+ $message .= sprintf('. Use "%s" instead', $function->getAlternative());
585
+ }
586
+ $message .= sprintf(' in %s at line %d.', $this->parser->getFilename(), $line);
587
+
588
+ @trigger_error($message, E_USER_DEPRECATED);
589
+ }
590
+
591
  if ($function instanceof Twig_SimpleFunction) {
592
  return $function->getNodeClass();
593
  }
608
  throw new Twig_Error_Syntax($message, $line, $this->parser->getFilename());
609
  }
610
 
611
+ if ($filter instanceof Twig_SimpleFilter && $filter->isDeprecated()) {
612
+ $message = sprintf('Twig Filter "%s" is deprecated', $filter->getName());
613
+ if ($test->getAlternative()) {
614
+ $message .= sprintf('. Use "%s" instead', $filter->getAlternative());
615
+ }
616
+ $message .= sprintf(' in %s at line %d.', $this->parser->getFilename(), $line);
617
+
618
+ @trigger_error($message, E_USER_DEPRECATED);
619
+ }
620
+
621
  if ($filter instanceof Twig_SimpleFilter) {
622
  return $filter->getNodeClass();
623
  }
vendor/twig/twig/lib/Twig/Extension/Core.php CHANGED
@@ -233,11 +233,11 @@ class Twig_Extension_Core extends Twig_Extension
233
  new Twig_SimpleTest('even', null, array('node_class' => 'Twig_Node_Expression_Test_Even')),
234
  new Twig_SimpleTest('odd', null, array('node_class' => 'Twig_Node_Expression_Test_Odd')),
235
  new Twig_SimpleTest('defined', null, array('node_class' => 'Twig_Node_Expression_Test_Defined')),
236
- new Twig_SimpleTest('sameas', null, array('node_class' => 'Twig_Node_Expression_Test_Sameas')),
237
  new Twig_SimpleTest('same as', null, array('node_class' => 'Twig_Node_Expression_Test_Sameas')),
238
  new Twig_SimpleTest('none', null, array('node_class' => 'Twig_Node_Expression_Test_Null')),
239
  new Twig_SimpleTest('null', null, array('node_class' => 'Twig_Node_Expression_Test_Null')),
240
- new Twig_SimpleTest('divisibleby', null, array('node_class' => 'Twig_Node_Expression_Test_Divisibleby')),
241
  new Twig_SimpleTest('divisible by', null, array('node_class' => 'Twig_Node_Expression_Test_Divisibleby')),
242
  new Twig_SimpleTest('constant', null, array('node_class' => 'Twig_Node_Expression_Test_Constant')),
243
  new Twig_SimpleTest('empty', 'twig_test_empty'),
@@ -255,37 +255,37 @@ class Twig_Extension_Core extends Twig_Extension
255
  return array(
256
  array(
257
  'not' => array('precedence' => 50, 'class' => 'Twig_Node_Expression_Unary_Not'),
258
- '-' => array('precedence' => 500, 'class' => 'Twig_Node_Expression_Unary_Neg'),
259
- '+' => array('precedence' => 500, 'class' => 'Twig_Node_Expression_Unary_Pos'),
260
  ),
261
  array(
262
- 'or' => array('precedence' => 10, 'class' => 'Twig_Node_Expression_Binary_Or', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
263
- 'and' => array('precedence' => 15, 'class' => 'Twig_Node_Expression_Binary_And', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
264
- 'b-or' => array('precedence' => 16, 'class' => 'Twig_Node_Expression_Binary_BitwiseOr', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
265
- 'b-xor' => array('precedence' => 17, 'class' => 'Twig_Node_Expression_Binary_BitwiseXor', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
266
- 'b-and' => array('precedence' => 18, 'class' => 'Twig_Node_Expression_Binary_BitwiseAnd', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
267
- '==' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_Equal', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
268
- '!=' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_NotEqual', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
269
- '<' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_Less', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
270
- '>' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_Greater', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
271
- '>=' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_GreaterEqual', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
272
- '<=' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_LessEqual', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
273
- 'not in' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_NotIn', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
274
- 'in' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_In', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
275
- 'matches' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_Matches', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
276
  'starts with' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_StartsWith', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
277
- 'ends with' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_EndsWith', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
278
- '..' => array('precedence' => 25, 'class' => 'Twig_Node_Expression_Binary_Range', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
279
- '+' => array('precedence' => 30, 'class' => 'Twig_Node_Expression_Binary_Add', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
280
- '-' => array('precedence' => 30, 'class' => 'Twig_Node_Expression_Binary_Sub', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
281
- '~' => array('precedence' => 40, 'class' => 'Twig_Node_Expression_Binary_Concat', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
282
- '*' => array('precedence' => 60, 'class' => 'Twig_Node_Expression_Binary_Mul', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
283
- '/' => array('precedence' => 60, 'class' => 'Twig_Node_Expression_Binary_Div', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
284
- '//' => array('precedence' => 60, 'class' => 'Twig_Node_Expression_Binary_FloorDiv', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
285
- '%' => array('precedence' => 60, 'class' => 'Twig_Node_Expression_Binary_Mod', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
286
- 'is' => array('precedence' => 100, 'callable' => array($this, 'parseTestExpression'), 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
287
- 'is not' => array('precedence' => 100, 'callable' => array($this, 'parseNotTestExpression'), 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
288
- '**' => array('precedence' => 200, 'class' => 'Twig_Node_Expression_Binary_Power', 'associativity' => Twig_ExpressionParser::OPERATOR_RIGHT),
289
  ),
290
  );
291
  }
@@ -298,17 +298,28 @@ class Twig_Extension_Core extends Twig_Extension
298
  public function parseTestExpression(Twig_Parser $parser, Twig_NodeInterface $node)
299
  {
300
  $stream = $parser->getStream();
301
- $name = $this->getTestName($parser, $node->getLine());
302
- $class = $this->getTestNodeClass($parser, $name);
 
 
 
 
 
 
 
 
 
 
 
303
  $arguments = null;
304
  if ($stream->test(Twig_Token::PUNCTUATION_TYPE, '(')) {
305
  $arguments = $parser->getExpressionParser()->parseArguments(true);
306
  }
307
 
308
- return new $class($node, $name, $arguments, $parser->getCurrentToken()->getLine());
309
  }
310
 
311
- protected function getTestName(Twig_Parser $parser, $line)
312
  {
313
  $stream = $parser->getStream();
314
  $name = $stream->expect(Twig_Token::NAME_TYPE)->getValue();
@@ -316,7 +327,7 @@ class Twig_Extension_Core extends Twig_Extension
316
  $testMap = $env->getTests();
317
 
318
  if (isset($testMap[$name])) {
319
- return $name;
320
  }
321
 
322
  if ($stream->test(Twig_Token::NAME_TYPE)) {
@@ -326,7 +337,7 @@ class Twig_Extension_Core extends Twig_Extension
326
  if (isset($testMap[$name])) {
327
  $parser->getStream()->next();
328
 
329
- return $name;
330
  }
331
  }
332
 
@@ -338,16 +349,13 @@ class Twig_Extension_Core extends Twig_Extension
338
  throw new Twig_Error_Syntax($message, $line, $parser->getFilename());
339
  }
340
 
341
- protected function getTestNodeClass(Twig_Parser $parser, $name)
342
  {
343
- $env = $parser->getEnvironment();
344
- $testMap = $env->getTests();
345
-
346
- if ($testMap[$name] instanceof Twig_SimpleTest) {
347
- return $testMap[$name]->getNodeClass();
348
  }
349
 
350
- return $testMap[$name] instanceof Twig_Test_Node ? $testMap[$name]->getClass() : 'Twig_Node_Expression_Test';
351
  }
352
 
353
  /**
@@ -382,10 +390,10 @@ function twig_cycle($values, $position)
382
  * Returns a random value depending on the supplied parameter type:
383
  * - a random item from a Traversable or array
384
  * - a random character from a string
385
- * - a random integer between 0 and the integer parameter
386
  *
387
- * @param Twig_Environment $env A Twig_Environment instance
388
- * @param Traversable|array|int|string $values The values to pick a random item from
389
  *
390
  * @throws Twig_Error_Runtime When $values is an empty array (does not apply to an empty string which is returned as is).
391
  *
@@ -466,15 +474,15 @@ function twig_date_format_filter(Twig_Environment $env, $date, $format = null, $
466
  }
467
 
468
  /**
469
- * Returns a new date object modified
470
  *
471
  * <pre>
472
  * {{ post.published_at|date_modify("-1day")|date("m/d/Y") }}
473
  * </pre>
474
  *
475
- * @param Twig_Environment $env A Twig_Environment instance
476
- * @param DateTime|string $date A date
477
- * @param string $modifier A modifier string
478
  *
479
  * @return DateTime A new date object
480
  */
@@ -545,11 +553,11 @@ function twig_date_converter(Twig_Environment $env, $date = null, $timezone = nu
545
  /**
546
  * Rounds a number.
547
  *
548
- * @param int|float $value The value to round
549
- * @param int|float $precision The rounding precision
550
- * @param string $method The method to use for rounding
551
  *
552
- * @return int|float The rounded number
553
  */
554
  function twig_round($value, $precision = 0, $method = 'common')
555
  {
@@ -571,11 +579,11 @@ function twig_round($value, $precision = 0, $method = 'common')
571
  * be used. Supplying any of the parameters will override the defaults set in the
572
  * environment object.
573
  *
574
- * @param Twig_Environment $env A Twig_Environment instance
575
- * @param mixed $number A float/int/string of the number to format
576
- * @param int $decimal The number of decimal points to display.
577
- * @param string $decimalPoint The character(s) to use for the decimal point.
578
- * @param string $thousandSep The character(s) to use for the thousands separator.
579
  *
580
  * @return string The formatted number
581
  */
@@ -805,9 +813,9 @@ function twig_join_filter($value, $glue = '')
805
  * {# returns [aa, bb, cc] #}
806
  * </pre>
807
  *
808
- * @param string $value A string
809
- * @param string $delimiter The delimiter
810
- * @param int $limit The limit
811
  *
812
  * @return array The split string as an array
813
  */
@@ -921,7 +929,9 @@ function twig_reverse_filter(Twig_Environment $env, $item, $preserveKeys = false
921
  /**
922
  * Sorts an array.
923
  *
924
- * @param array $array An array
 
 
925
  */
926
  function twig_sort_filter($array)
927
  {
@@ -952,6 +962,8 @@ function twig_in_filter($value, $compare)
952
  * @param string $strategy The escaping strategy
953
  * @param string $charset The charset
954
  * @param bool $autoescape Whether the function is called by the auto-escaping feature (true) or by the developer (false)
 
 
955
  */
956
  function twig_escape_filter(Twig_Environment $env, $string, $strategy = 'html', $charset = null, $autoescape = false)
957
  {
@@ -1186,7 +1198,7 @@ function _twig_escape_html_attr_callback($matches)
1186
  $chr = $matches[0];
1187
  $ord = ord($chr);
1188
 
1189
- /**
1190
  * The following replaces characters undefined in HTML with the
1191
  * hex entity for the Unicode replacement character.
1192
  */
@@ -1194,7 +1206,7 @@ function _twig_escape_html_attr_callback($matches)
1194
  return '&#xFFFD;';
1195
  }
1196
 
1197
- /**
1198
  * Check if the current character to escape has a name entity we should
1199
  * replace it with while grabbing the hex value of the character.
1200
  */
@@ -1210,7 +1222,7 @@ function _twig_escape_html_attr_callback($matches)
1210
  return sprintf('&%s;', $entityMap[$int]);
1211
  }
1212
 
1213
- /**
1214
  * Per OWASP recommendations, we'll use hex entities for any other
1215
  * characters where a named entity does not exist.
1216
  */
@@ -1365,7 +1377,7 @@ function twig_ensure_traversable($seq)
1365
  *
1366
  * @param mixed $value A variable
1367
  *
1368
- * @return bool true if the value is empty, false otherwise
1369
  */
1370
  function twig_test_empty($value)
1371
  {
@@ -1388,7 +1400,7 @@ function twig_test_empty($value)
1388
  *
1389
  * @param mixed $value A variable
1390
  *
1391
- * @return bool true if the value is traversable
1392
  */
1393
  function twig_test_iterable($value)
1394
  {
@@ -1398,11 +1410,13 @@ function twig_test_iterable($value)
1398
  /**
1399
  * Renders a template.
1400
  *
1401
- * @param string|array $template The template to render or an array of templates to try consecutively
1402
- * @param array $variables The variables to pass to the template
1403
- * @param bool $with_context Whether to pass the current context variables or not
1404
- * @param bool $ignore_missing Whether to ignore missing templates or not
1405
- * @param bool $sandboxed Whether to sandbox the template or not
 
 
1406
  *
1407
  * @return string The rendered template
1408
  */
@@ -1421,10 +1435,15 @@ function twig_include(Twig_Environment $env, $context, $template, $variables = a
1421
  }
1422
  }
1423
 
 
1424
  try {
1425
- return $env->resolveTemplate($template)->render($variables);
1426
  } catch (Twig_Error_Loader $e) {
1427
  if (!$ignoreMissing) {
 
 
 
 
1428
  throw $e;
1429
  }
1430
  }
@@ -1432,18 +1451,27 @@ function twig_include(Twig_Environment $env, $context, $template, $variables = a
1432
  if ($isSandboxed && !$alreadySandboxed) {
1433
  $sandbox->disableSandbox();
1434
  }
 
 
1435
  }
1436
 
1437
  /**
1438
  * Returns a template content without rendering it.
1439
  *
1440
- * @param string $name The template name
 
1441
  *
1442
  * @return string The template source
1443
  */
1444
- function twig_source(Twig_Environment $env, $name)
1445
  {
1446
- return $env->getLoader()->getSource($name);
 
 
 
 
 
 
1447
  }
1448
 
1449
  /**
@@ -1466,9 +1494,9 @@ function twig_constant($constant, $object = null)
1466
  /**
1467
  * Batches item.
1468
  *
1469
- * @param array $items An array of items
1470
- * @param int $size The size of the batch
1471
- * @param mixed $fill A value used to fill missing items
1472
  *
1473
  * @return array
1474
  */
@@ -1482,7 +1510,7 @@ function twig_array_batch($items, $size, $fill = null)
1482
 
1483
  $result = array_chunk($items, $size, true);
1484
 
1485
- if (null !== $fill) {
1486
  $last = count($result) - 1;
1487
  if ($fillCount = $size - count($result[$last])) {
1488
  $result[$last] = array_merge(
233
  new Twig_SimpleTest('even', null, array('node_class' => 'Twig_Node_Expression_Test_Even')),
234
  new Twig_SimpleTest('odd', null, array('node_class' => 'Twig_Node_Expression_Test_Odd')),
235
  new Twig_SimpleTest('defined', null, array('node_class' => 'Twig_Node_Expression_Test_Defined')),
236
+ new Twig_SimpleTest('sameas', null, array('node_class' => 'Twig_Node_Expression_Test_Sameas', 'deprecated' => true, 'alternative' => 'same as')),
237
  new Twig_SimpleTest('same as', null, array('node_class' => 'Twig_Node_Expression_Test_Sameas')),
238
  new Twig_SimpleTest('none', null, array('node_class' => 'Twig_Node_Expression_Test_Null')),
239
  new Twig_SimpleTest('null', null, array('node_class' => 'Twig_Node_Expression_Test_Null')),
240
+ new Twig_SimpleTest('divisibleby', null, array('node_class' => 'Twig_Node_Expression_Test_Divisibleby', 'deprecated' => true, 'alternative' => 'divisible by')),
241
  new Twig_SimpleTest('divisible by', null, array('node_class' => 'Twig_Node_Expression_Test_Divisibleby')),
242
  new Twig_SimpleTest('constant', null, array('node_class' => 'Twig_Node_Expression_Test_Constant')),
243
  new Twig_SimpleTest('empty', 'twig_test_empty'),
255
  return array(
256
  array(
257
  'not' => array('precedence' => 50, 'class' => 'Twig_Node_Expression_Unary_Not'),
258
+ '-' => array('precedence' => 500, 'class' => 'Twig_Node_Expression_Unary_Neg'),
259
+ '+' => array('precedence' => 500, 'class' => 'Twig_Node_Expression_Unary_Pos'),
260
  ),
261
  array(
262
+ 'or' => array('precedence' => 10, 'class' => 'Twig_Node_Expression_Binary_Or', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
263
+ 'and' => array('precedence' => 15, 'class' => 'Twig_Node_Expression_Binary_And', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
264
+ 'b-or' => array('precedence' => 16, 'class' => 'Twig_Node_Expression_Binary_BitwiseOr', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
265
+ 'b-xor' => array('precedence' => 17, 'class' => 'Twig_Node_Expression_Binary_BitwiseXor', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
266
+ 'b-and' => array('precedence' => 18, 'class' => 'Twig_Node_Expression_Binary_BitwiseAnd', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
267
+ '==' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_Equal', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
268
+ '!=' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_NotEqual', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
269
+ '<' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_Less', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
270
+ '>' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_Greater', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
271
+ '>=' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_GreaterEqual', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
272
+ '<=' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_LessEqual', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
273
+ 'not in' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_NotIn', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
274
+ 'in' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_In', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
275
+ 'matches' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_Matches', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
276
  'starts with' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_StartsWith', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
277
+ 'ends with' => array('precedence' => 20, 'class' => 'Twig_Node_Expression_Binary_EndsWith', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
278
+ '..' => array('precedence' => 25, 'class' => 'Twig_Node_Expression_Binary_Range', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
279
+ '+' => array('precedence' => 30, 'class' => 'Twig_Node_Expression_Binary_Add', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
280
+ '-' => array('precedence' => 30, 'class' => 'Twig_Node_Expression_Binary_Sub', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
281
+ '~' => array('precedence' => 40, 'class' => 'Twig_Node_Expression_Binary_Concat', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
282
+ '*' => array('precedence' => 60, 'class' => 'Twig_Node_Expression_Binary_Mul', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
283
+ '/' => array('precedence' => 60, 'class' => 'Twig_Node_Expression_Binary_Div', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
284
+ '//' => array('precedence' => 60, 'class' => 'Twig_Node_Expression_Binary_FloorDiv', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
285
+ '%' => array('precedence' => 60, 'class' => 'Twig_Node_Expression_Binary_Mod', 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
286
+ 'is' => array('precedence' => 100, 'callable' => array($this, 'parseTestExpression'), 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
287
+ 'is not' => array('precedence' => 100, 'callable' => array($this, 'parseNotTestExpression'), 'associativity' => Twig_ExpressionParser::OPERATOR_LEFT),
288
+ '**' => array('precedence' => 200, 'class' => 'Twig_Node_Expression_Binary_Power', 'associativity' => Twig_ExpressionParser::OPERATOR_RIGHT),
289
  ),
290
  );
291
  }
298
  public function parseTestExpression(Twig_Parser $parser, Twig_NodeInterface $node)
299
  {
300
  $stream = $parser->getStream();
301
+ $test = $this->getTest($parser, $node->getLine());
302
+
303
+ if ($test instanceof Twig_SimpleTest && $test->isDeprecated()) {
304
+ $message = sprintf('Twig Test "%s" is deprecated', $test->getName());
305
+ if ($test->getAlternative()) {
306
+ $message .= sprintf('. Use "%s" instead', $test->getAlternative());
307
+ }
308
+ $message .= sprintf(' in %s at line %d.', $stream->getFilename(), $stream->getCurrent()->getLine());
309
+
310
+ @trigger_error($message, E_USER_DEPRECATED);
311
+ }
312
+
313
+ $class = $this->getTestNodeClass($parser, $test);
314
  $arguments = null;
315
  if ($stream->test(Twig_Token::PUNCTUATION_TYPE, '(')) {
316
  $arguments = $parser->getExpressionParser()->parseArguments(true);
317
  }
318
 
319
+ return new $class($node, $test->getName(), $arguments, $parser->getCurrentToken()->getLine());
320
  }
321
 
322
+ protected function getTest(Twig_Parser $parser, $line)
323
  {
324
  $stream = $parser->getStream();
325
  $name = $stream->expect(Twig_Token::NAME_TYPE)->getValue();
327
  $testMap = $env->getTests();
328
 
329
  if (isset($testMap[$name])) {
330
+ return $testMap[$name];
331
  }
332
 
333
  if ($stream->test(Twig_Token::NAME_TYPE)) {
337
  if (isset($testMap[$name])) {
338
  $parser->getStream()->next();
339
 
340
+ return $testMap[$name];
341
  }
342
  }
343
 
349
  throw new Twig_Error_Syntax($message, $line, $parser->getFilename());
350
  }
351
 
352
+ protected function getTestNodeClass(Twig_Parser $parser, $test)
353
  {
354
+ if ($test instanceof Twig_SimpleTest) {
355
+ return $test->getNodeClass();
 
 
 
356
  }
357
 
358
+ return $test instanceof Twig_Test_Node ? $test->getClass() : 'Twig_Node_Expression_Test';
359
  }
360
 
361
  /**
390
  * Returns a random value depending on the supplied parameter type:
391
  * - a random item from a Traversable or array
392
  * - a random character from a string
393
+ * - a random integer between 0 and the integer parameter.
394
  *
395
+ * @param Twig_Environment $env A Twig_Environment instance
396
+ * @param Traversable|array|int|string $values The values to pick a random item from
397
  *
398
  * @throws Twig_Error_Runtime When $values is an empty array (does not apply to an empty string which is returned as is).
399
  *
474
  }
475
 
476
  /**
477
+ * Returns a new date object modified.
478
  *
479
  * <pre>
480
  * {{ post.published_at|date_modify("-1day")|date("m/d/Y") }}
481
  * </pre>
482
  *
483
+ * @param Twig_Environment $env A Twig_Environment instance
484
+ * @param DateTime|string $date A date
485
+ * @param string $modifier A modifier string
486
  *
487
  * @return DateTime A new date object
488
  */
553
  /**
554
  * Rounds a number.
555
  *
556
+ * @param int|float $value The value to round
557
+ * @param int|float $precision The rounding precision
558
+ * @param string $method The method to use for rounding
559
  *
560
+ * @return int|float The rounded number
561
  */
562
  function twig_round($value, $precision = 0, $method = 'common')
563
  {
579
  * be used. Supplying any of the parameters will override the defaults set in the
580
  * environment object.
581
  *
582
+ * @param Twig_Environment $env A Twig_Environment instance
583
+ * @param mixed $number A float/int/string of the number to format
584
+ * @param int $decimal The number of decimal points to display.
585
+ * @param string $decimalPoint The character(s) to use for the decimal point.
586
+ * @param string $thousandSep The character(s) to use for the thousands separator.
587
  *
588
  * @return string The formatted number
589
  */
813
  * {# returns [aa, bb, cc] #}
814
  * </pre>
815
  *
816
+ * @param string $value A string
817
+ * @param string $delimiter The delimiter
818
+ * @param int $limit The limit
819
  *
820
  * @return array The split string as an array
821
  */
929
  /**
930
  * Sorts an array.
931
  *
932
+ * @param array $array
933
+ *
934
+ * @return array
935
  */
936
  function twig_sort_filter($array)
937
  {
962
  * @param string $strategy The escaping strategy
963
  * @param string $charset The charset
964
  * @param bool $autoescape Whether the function is called by the auto-escaping feature (true) or by the developer (false)
965
+ *
966
+ * @return string
967
  */
968
  function twig_escape_filter(Twig_Environment $env, $string, $strategy = 'html', $charset = null, $autoescape = false)
969
  {
1198
  $chr = $matches[0];
1199
  $ord = ord($chr);
1200
 
1201
+ /*
1202
  * The following replaces characters undefined in HTML with the
1203
  * hex entity for the Unicode replacement character.
1204
  */
1206
  return '&#xFFFD;';
1207
  }
1208
 
1209
+ /*
1210
  * Check if the current character to escape has a name entity we should
1211
  * replace it with while grabbing the hex value of the character.
1212
  */
1222
  return sprintf('&%s;', $entityMap[$int]);
1223
  }
1224
 
1225
+ /*
1226
  * Per OWASP recommendations, we'll use hex entities for any other
1227
  * characters where a named entity does not exist.
1228
  */
1377
  *
1378
  * @param mixed $value A variable
1379
  *
1380
+ * @return bool true if the value is empty, false otherwise
1381
  */
1382
  function twig_test_empty($value)
1383
  {
1400
  *
1401
  * @param mixed $value A variable
1402
  *
1403
+ * @return bool true if the value is traversable
1404
  */
1405
  function twig_test_iterable($value)
1406
  {
1410
  /**
1411
  * Renders a template.
1412
  *
1413
+ * @param Twig_Environment $env
1414
+ * @param array $context
1415
+ * @param string|array $template The template to render or an array of templates to try consecutively
1416
+ * @param array $variables The variables to pass to the template
1417
+ * @param bool $withContext
1418
+ * @param bool $ignoreMissing Whether to ignore missing templates or not
1419
+ * @param bool $sandboxed Whether to sandbox the template or not
1420
  *
1421
  * @return string The rendered template
1422
  */
1435
  }
1436
  }
1437
 
1438
+ $result = null;
1439
  try {
1440
+ $result = $env->resolveTemplate($template)->render($variables);
1441
  } catch (Twig_Error_Loader $e) {
1442
  if (!$ignoreMissing) {
1443
+ if ($isSandboxed && !$alreadySandboxed) {
1444
+ $sandbox->disableSandbox();
1445
+ }
1446
+
1447
  throw $e;
1448
  }
1449
  }
1451
  if ($isSandboxed && !$alreadySandboxed) {
1452
  $sandbox->disableSandbox();
1453
  }
1454
+
1455
+ return $result;
1456
  }
1457
 
1458
  /**
1459
  * Returns a template content without rendering it.
1460
  *
1461
+ * @param string $name The template name
1462
+ * @param bool $ignoreMissing Whether to ignore missing templates or not
1463
  *
1464
  * @return string The template source
1465
  */
1466
+ function twig_source(Twig_Environment $env, $name, $ignoreMissing = false)
1467
  {
1468
+ try {
1469
+ return $env->getLoader()->getSource($name);
1470
+ } catch (Twig_Error_Loader $e) {
1471
+ if (!$ignoreMissing) {
1472
+ throw $e;
1473
+ }
1474
+ }
1475
  }
1476
 
1477
  /**
1494
  /**
1495
  * Batches item.
1496
  *
1497
+ * @param array $items An array of items
1498
+ * @param int $size The size of the batch
1499
+ * @param mixed $fill A value used to fill missing items
1500
  *
1501
  * @return array
1502
  */
1510
 
1511
  $result = array_chunk($items, $size, true);
1512
 
1513
+ if (null !== $fill && !empty($result)) {
1514
  $last = count($result) - 1;
1515
  if ($fillCount = $size - count($result[$last])) {
1516
  $result[$last] = array_merge(
vendor/twig/twig/lib/Twig/Extension/Debug.php CHANGED
@@ -62,7 +62,7 @@ function twig_var_dump(Twig_Environment $env, $context)
62
 
63
  var_dump($vars);
64
  } else {
65
- for ($i = 2; $i < $count; $i++) {
66
  var_dump(func_get_arg($i));
67
  }
68
  }
62
 
63
  var_dump($vars);
64
  } else {
65
+ for ($i = 2; $i < $count; ++$i) {
66
  var_dump(func_get_arg($i));
67
  }
68
  }
vendor/twig/twig/lib/Twig/Extension/Escaper.php CHANGED
@@ -12,6 +12,13 @@ class Twig_Extension_Escaper extends Twig_Extension
12
  {
13
  protected $defaultStrategy;
14
 
 
 
 
 
 
 
 
15
  public function __construct($defaultStrategy = 'html')
16
  {
17
  $this->setDefaultStrategy($defaultStrategy);
@@ -55,12 +62,14 @@ class Twig_Extension_Escaper extends Twig_Extension
55
  * The strategy can be a valid PHP callback that takes the template
56
  * "filename" as an argument and returns the strategy to use.
57
  *
58
- * @param mixed $defaultStrategy An escaping strategy
59
  */
60
  public function setDefaultStrategy($defaultStrategy)
61
  {
62
  // for BC
63
  if (true === $defaultStrategy) {
 
 
64
  $defaultStrategy = 'html';
65
  }
66
 
@@ -76,13 +85,13 @@ class Twig_Extension_Escaper extends Twig_Extension
76
  *
77
  * @param string $filename The template "filename"
78
  *
79
- * @return string The default strategy to use for the template
80
  */
81
  public function getDefaultStrategy($filename)
82
  {
83
  // disable string callables to avoid calling a function named html or js,
84
  // or any other upcoming escaping strategy
85
- if (!is_string($this->defaultStrategy) && is_callable($this->defaultStrategy)) {
86
  return call_user_func($this->defaultStrategy, $filename);
87
  }
88
 
@@ -104,6 +113,8 @@ class Twig_Extension_Escaper extends Twig_Extension
104
  * Marks a variable as being safe.
105
  *
106
  * @param string $string A PHP variable
 
 
107
  */
108
  function twig_raw_filter($string)
109
  {
12
  {
13
  protected $defaultStrategy;
14
 
15
+ /**
16
+ * Constructor.
17
+ *
18
+ * @param string|false|callable $defaultStrategy An escaping strategy
19
+ *
20
+ * @see setDefaultStrategy()
21
+ */
22
  public function __construct($defaultStrategy = 'html')
23
  {
24
  $this->setDefaultStrategy($defaultStrategy);
62
  * The strategy can be a valid PHP callback that takes the template
63
  * "filename" as an argument and returns the strategy to use.
64
  *
65
+ * @param string|false|callable $defaultStrategy An escaping strategy
66
  */
67
  public function setDefaultStrategy($defaultStrategy)
68
  {
69
  // for BC
70
  if (true === $defaultStrategy) {
71
+ @trigger_error('Using "true" as the default strategy is deprecated. Use "html" instead.', E_USER_DEPRECATED);
72
+
73
  $defaultStrategy = 'html';
74
  }
75
 
85
  *
86
  * @param string $filename The template "filename"
87
  *
88
+ * @return string|false The default strategy to use for the template
89
  */
90
  public function getDefaultStrategy($filename)
91
  {
92
  // disable string callables to avoid calling a function named html or js,
93
  // or any other upcoming escaping strategy
94
+ if (!is_string($this->defaultStrategy) && false !== $this->defaultStrategy) {
95
  return call_user_func($this->defaultStrategy, $filename);
96
  }
97
 
113
  * Marks a variable as being safe.
114
  *
115
  * @param string $string A PHP variable
116
+ *
117
+ * @return string
118
  */
119
  function twig_raw_filter($string)
120
  {
vendor/twig/twig/lib/Twig/Extension/Profiler.php CHANGED
@@ -11,11 +11,11 @@
11
 
12
  class Twig_Extension_Profiler extends Twig_Extension
13
  {
14
- private $actives;
15
 
16
  public function __construct(Twig_Profiler_Profile $profile)
17
  {
18
- $this->actives = array($profile);
19
  }
20
 
21
  public function enter(Twig_Profiler_Profile $profile)
11
 
12
  class Twig_Extension_Profiler extends Twig_Extension
13
  {
14
+ private $actives = array();
15
 
16
  public function __construct(Twig_Profiler_Profile $profile)
17
  {
18
+ $this->actives[] = $profile;
19
  }
20
 
21
  public function enter(Twig_Profiler_Profile $profile)
vendor/twig/twig/lib/Twig/Extension/Sandbox.php CHANGED
@@ -16,7 +16,7 @@ class Twig_Extension_Sandbox extends Twig_Extension
16
 
17
  public function __construct(Twig_Sandbox_SecurityPolicyInterface $policy, $sandboxed = false)
18
  {
19
- $this->policy = $policy;
20
  $this->sandboxedGlobally = $sandboxed;
21
  }
22
 
16
 
17
  public function __construct(Twig_Sandbox_SecurityPolicyInterface $policy, $sandboxed = false)
18
  {
19
+ $this->policy = $policy;
20
  $this->sandboxedGlobally = $sandboxed;
21
  }
22
 
vendor/twig/twig/lib/Twig/Filter.php CHANGED
@@ -9,12 +9,15 @@
9
  * file that was distributed with this source code.
10
  */
11
 
 
 
12
  /**
13
  * Represents a template filter.
14
  *
15
  * Use Twig_SimpleFilter instead.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
 
18
  * @deprecated since 1.12 (to be removed in 2.0)
19
  */
20
  abstract class Twig_Filter implements Twig_FilterInterface, Twig_FilterCallableInterface
@@ -26,10 +29,10 @@ abstract class Twig_Filter implements Twig_FilterInterface, Twig_FilterCallableI
26
  {
27
  $this->options = array_merge(array(
28
  'needs_environment' => false,
29
- 'needs_context' => false,
30
- 'pre_escape' => null,
31
- 'preserves_safety' => null,
32
- 'callable' => null,
33
  ), $options);
34
  }
35
 
9
  * file that was distributed with this source code.
10
  */
11
 
12
+ @trigger_error('The Twig_Filter class is deprecated since version 1.12 and will be removed in 2.0. Use Twig_SimpleFilter instead.', E_USER_DEPRECATED);
13
+
14
  /**
15
  * Represents a template filter.
16
  *
17
  * Use Twig_SimpleFilter instead.
18
  *
19
  * @author Fabien Potencier <fabien@symfony.com>
20
+ *
21
  * @deprecated since 1.12 (to be removed in 2.0)
22
  */
23
  abstract class Twig_Filter implements Twig_FilterInterface, Twig_FilterCallableInterface
29
  {
30
  $this->options = array_merge(array(
31
  'needs_environment' => false,
32
+ 'needs_context' => false,
33
+ 'pre_escape' => null,
34
+ 'preserves_safety' => null,
35
+ 'callable' => null,
36
  ), $options);
37
  }
38
 
vendor/twig/twig/lib/Twig/Filter/Function.php CHANGED
@@ -9,12 +9,15 @@
9
  * file that was distributed with this source code.
10
  */
11
 
 
 
12
  /**
13
  * Represents a function template filter.
14
  *
15
  * Use Twig_SimpleFilter instead.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
 
18
  * @deprecated since 1.12 (to be removed in 2.0)
19
  */
20
  class Twig_Filter_Function extends Twig_Filter
9
  * file that was distributed with this source code.
10
  */
11
 
12
+ @trigger_error('The Twig_Filter_Function class is deprecated since version 1.12 and will be removed in 2.0. Use Twig_SimpleFilter instead.', E_USER_DEPRECATED);
13
+
14
  /**
15
  * Represents a function template filter.
16
  *
17
  * Use Twig_SimpleFilter instead.
18
  *
19
  * @author Fabien Potencier <fabien@symfony.com>
20
+ *
21
  * @deprecated since 1.12 (to be removed in 2.0)
22
  */
23
  class Twig_Filter_Function extends Twig_Filter
vendor/twig/twig/lib/Twig/Filter/Method.php CHANGED
@@ -9,12 +9,15 @@
9
  * file that was distributed with this source code.
10
  */
11
 
 
 
12
  /**
13
  * Represents a method template filter.
14
  *
15
  * Use Twig_SimpleFilter instead.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
 
18
  * @deprecated since 1.12 (to be removed in 2.0)
19
  */
20
  class Twig_Filter_Method extends Twig_Filter
9
  * file that was distributed with this source code.
10
  */
11
 
12
+ @trigger_error('The Twig_Filter_Method class is deprecated since version 1.12 and will be removed in 2.0. Use Twig_SimpleFilter instead.', E_USER_DEPRECATED);
13
+
14
  /**
15
  * Represents a method template filter.
16
  *
17
  * Use Twig_SimpleFilter instead.
18
  *
19
  * @author Fabien Potencier <fabien@symfony.com>
20
+ *
21
  * @deprecated since 1.12 (to be removed in 2.0)
22
  */
23
  class Twig_Filter_Method extends Twig_Filter
vendor/twig/twig/lib/Twig/Filter/Node.php CHANGED
@@ -9,12 +9,15 @@
9
  * file that was distributed with this source code.
10
  */
11
 
 
 
12
  /**
13
  * Represents a template filter as a node.
14
  *
15
  * Use Twig_SimpleFilter instead.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
 
18
  * @deprecated since 1.12 (to be removed in 2.0)
19
  */
20
  class Twig_Filter_Node extends Twig_Filter
9
  * file that was distributed with this source code.
10
  */
11
 
12
+ @trigger_error('The Twig_Filter_Node class is deprecated since version 1.12 and will be removed in 2.0. Use Twig_SimpleFilter instead.', E_USER_DEPRECATED);
13
+
14
  /**
15
  * Represents a template filter as a node.
16
  *
17
  * Use Twig_SimpleFilter instead.
18
  *
19
  * @author Fabien Potencier <fabien@symfony.com>
20
+ *
21
  * @deprecated since 1.12 (to be removed in 2.0)
22
  */
23
  class Twig_Filter_Node extends Twig_Filter
vendor/twig/twig/lib/Twig/FilterCallableInterface.php CHANGED
@@ -15,6 +15,7 @@
15
  * Use Twig_SimpleFilter instead.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
 
18
  * @deprecated since 1.12 (to be removed in 2.0)
19
  */
20
  interface Twig_FilterCallableInterface
15
  * Use Twig_SimpleFilter instead.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
18
+ *
19
  * @deprecated since 1.12 (to be removed in 2.0)
20
  */
21
  interface Twig_FilterCallableInterface
vendor/twig/twig/lib/Twig/FilterInterface.php CHANGED
@@ -15,6 +15,7 @@
15
  * Use Twig_SimpleFilter instead.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
 
18
  * @deprecated since 1.12 (to be removed in 2.0)
19
  */
20
  interface Twig_FilterInterface
15
  * Use Twig_SimpleFilter instead.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
18
+ *
19
  * @deprecated since 1.12 (to be removed in 2.0)
20
  */
21
  interface Twig_FilterInterface
vendor/twig/twig/lib/Twig/Function.php CHANGED
@@ -9,12 +9,15 @@
9
  * file that was distributed with this source code.
10
  */
11
 
 
 
12
  /**
13
  * Represents a template function.
14
  *
15
  * Use Twig_SimpleFunction instead.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
 
18
  * @deprecated since 1.12 (to be removed in 2.0)
19
  */
20
  abstract class Twig_Function implements Twig_FunctionInterface, Twig_FunctionCallableInterface
@@ -26,8 +29,8 @@ abstract class Twig_Function implements Twig_FunctionInterface, Twig_FunctionCal
26
  {
27
  $this->options = array_merge(array(
28
  'needs_environment' => false,
29
- 'needs_context' => false,
30
- 'callable' => null,
31
  ), $options);
32
  }
33
 
9
  * file that was distributed with this source code.
10
  */
11
 
12
+ @trigger_error('The Twig_Function class is deprecated since version 1.12 and will be removed in 2.0. Use Twig_SimpleFunction instead.', E_USER_DEPRECATED);
13
+
14
  /**
15
  * Represents a template function.
16
  *
17
  * Use Twig_SimpleFunction instead.
18
  *
19
  * @author Fabien Potencier <fabien@symfony.com>
20
+ *
21
  * @deprecated since 1.12 (to be removed in 2.0)
22
  */
23
  abstract class Twig_Function implements Twig_FunctionInterface, Twig_FunctionCallableInterface
29
  {
30
  $this->options = array_merge(array(
31
  'needs_environment' => false,
32
+ 'needs_context' => false,
33
+ 'callable' => null,
34
  ), $options);
35
  }
36
 
vendor/twig/twig/lib/Twig/Function/Function.php CHANGED
@@ -10,12 +10,15 @@
10
  * file that was distributed with this source code.
11
  */
12
 
 
 
13
  /**
14
  * Represents a function template function.
15
  *
16
  * Use Twig_SimpleFunction instead.
17
  *
18
  * @author Arnaud Le Blanc <arnaud.lb@gmail.com>
 
19
  * @deprecated since 1.12 (to be removed in 2.0)
20
  */
21
  class Twig_Function_Function extends Twig_Function
10
  * file that was distributed with this source code.
11
  */
12
 
13
+ @trigger_error('The Twig_Function_Function class is deprecated since version 1.12 and will be removed in 2.0. Use Twig_SimpleFunction instead.', E_USER_DEPRECATED);
14
+
15
  /**
16
  * Represents a function template function.
17
  *
18
  * Use Twig_SimpleFunction instead.
19
  *
20
  * @author Arnaud Le Blanc <arnaud.lb@gmail.com>
21
+ *
22
  * @deprecated since 1.12 (to be removed in 2.0)
23
  */
24
  class Twig_Function_Function extends Twig_Function
vendor/twig/twig/lib/Twig/Function/Method.php CHANGED
@@ -10,12 +10,15 @@
10
  * file that was distributed with this source code.
11
  */
12
 
 
 
13
  /**
14
  * Represents a method template function.
15
  *
16
  * Use Twig_SimpleFunction instead.
17
  *
18
  * @author Arnaud Le Blanc <arnaud.lb@gmail.com>
 
19
  * @deprecated since 1.12 (to be removed in 2.0)
20
  */
21
  class Twig_Function_Method extends Twig_Function
10
  * file that was distributed with this source code.
11
  */
12
 
13
+ @trigger_error('The Twig_Function_Method class is deprecated since version 1.12 and will be removed in 2.0. Use Twig_SimpleFunction instead.', E_USER_DEPRECATED);
14
+
15
  /**
16
  * Represents a method template function.
17
  *
18
  * Use Twig_SimpleFunction instead.
19
  *
20
  * @author Arnaud Le Blanc <arnaud.lb@gmail.com>
21
+ *
22
  * @deprecated since 1.12 (to be removed in 2.0)
23
  */
24
  class Twig_Function_Method extends Twig_Function
vendor/twig/twig/lib/Twig/Function/Node.php CHANGED
@@ -9,12 +9,15 @@
9
  * file that was distributed with this source code.
10
  */
11
 
 
 
12
  /**
13
  * Represents a template function as a node.
14
  *
15
  * Use Twig_SimpleFunction instead.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
 
18
  * @deprecated since 1.12 (to be removed in 2.0)
19
  */
20
  class Twig_Function_Node extends Twig_Function
9
  * file that was distributed with this source code.
10
  */
11
 
12
+ @trigger_error('The Twig_Function_Node class is deprecated since version 1.12 and will be removed in 2.0. Use Twig_SimpleFunction instead.', E_USER_DEPRECATED);
13
+
14
  /**
15
  * Represents a template function as a node.
16
  *
17
  * Use Twig_SimpleFunction instead.
18
  *
19
  * @author Fabien Potencier <fabien@symfony.com>
20
+ *
21
  * @deprecated since 1.12 (to be removed in 2.0)
22
  */
23
  class Twig_Function_Node extends Twig_Function
vendor/twig/twig/lib/Twig/FunctionCallableInterface.php CHANGED
@@ -15,6 +15,7 @@
15
  * Use Twig_SimpleFunction instead.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
 
18
  * @deprecated since 1.12 (to be removed in 2.0)
19
  */
20
  interface Twig_FunctionCallableInterface
15
  * Use Twig_SimpleFunction instead.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
18
+ *
19
  * @deprecated since 1.12 (to be removed in 2.0)
20
  */
21
  interface Twig_FunctionCallableInterface
vendor/twig/twig/lib/Twig/FunctionInterface.php CHANGED
@@ -16,6 +16,7 @@
16
  * Use Twig_SimpleFunction instead.
17
  *
18
  * @author Arnaud Le Blanc <arnaud.lb@gmail.com>
 
19
  * @deprecated since 1.12 (to be removed in 2.0)
20
  */
21
  interface Twig_FunctionInterface
16
  * Use Twig_SimpleFunction instead.
17
  *
18
  * @author Arnaud Le Blanc <arnaud.lb@gmail.com>
19
+ *
20
  * @deprecated since 1.12 (to be removed in 2.0)
21
  */
22
  interface Twig_FunctionInterface
vendor/twig/twig/lib/Twig/Lexer.php CHANGED
@@ -33,42 +33,42 @@ class Twig_Lexer implements Twig_LexerInterface
33
  protected $positions;
34
  protected $currentVarBlockLine;
35
 
36
- const STATE_DATA = 0;
37
- const STATE_BLOCK = 1;
38
- const STATE_VAR = 2;
39
- const STATE_STRING = 3;
40
- const STATE_INTERPOLATION = 4;
41
-
42
- const REGEX_NAME = '/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/A';
43
- const REGEX_NUMBER = '/[0-9]+(?:\.[0-9]+)?/A';
44
- const REGEX_STRING = '/"([^#"\\\\]*(?:\\\\.[^#"\\\\]*)*)"|\'([^\'\\\\]*(?:\\\\.[^\'\\\\]*)*)\'/As';
45
  const REGEX_DQ_STRING_DELIM = '/"/A';
46
- const REGEX_DQ_STRING_PART = '/[^#"\\\\]*(?:(?:\\\\.|#(?!\{))[^#"\\\\]*)*/As';
47
- const PUNCTUATION = '()[]{}?:.,|';
48
 
49
  public function __construct(Twig_Environment $env, array $options = array())
50
  {
51
  $this->env = $env;
52
 
53
  $this->options = array_merge(array(
54
- 'tag_comment' => array('{#', '#}'),
55
- 'tag_block' => array('{%', '%}'),
56
- 'tag_variable' => array('{{', '}}'),
57
  'whitespace_trim' => '-',
58
- 'interpolation' => array('#{', '}'),
59
  ), $options);
60
 
61
  $this->regexes = array(
62
- 'lex_var' => '/\s*'.preg_quote($this->options['whitespace_trim'].$this->options['tag_variable'][1], '/').'\s*|\s*'.preg_quote($this->options['tag_variable'][1], '/').'/A',
63
- 'lex_block' => '/\s*(?:'.preg_quote($this->options['whitespace_trim'].$this->options['tag_block'][1], '/').'\s*|\s*'.preg_quote($this->options['tag_block'][1], '/').')\n?/A',
64
- 'lex_raw_data' => '/('.preg_quote($this->options['tag_block'][0].$this->options['whitespace_trim'], '/').'|'.preg_quote($this->options['tag_block'][0], '/').')\s*(?:end%s)\s*(?:'.preg_quote($this->options['whitespace_trim'].$this->options['tag_block'][1], '/').'\s*|\s*'.preg_quote($this->options['tag_block'][1], '/').')/s',
65
- 'operator' => $this->getOperatorRegex(),
66
- 'lex_comment' => '/(?:'.preg_quote($this->options['whitespace_trim'], '/').preg_quote($this->options['tag_comment'][1], '/').'\s*|'.preg_quote($this->options['tag_comment'][1], '/').')\n?/s',
67
- 'lex_block_raw' => '/\s*(raw|verbatim)\s*(?:'.preg_quote($this->options['whitespace_trim'].$this->options['tag_block'][1], '/').'\s*|\s*'.preg_quote($this->options['tag_block'][1], '/').')/As',
68
- 'lex_block_line' => '/\s*line\s+(\d+)\s*'.preg_quote($this->options['tag_block'][1], '/').'/As',
69
- 'lex_tokens_start' => '/('.preg_quote($this->options['tag_variable'][0], '/').'|'.preg_quote($this->options['tag_block'][0], '/').'|'.preg_quote($this->options['tag_comment'][0], '/').')('.preg_quote($this->options['whitespace_trim'], '/').')?/s',
70
  'interpolation_start' => '/'.preg_quote($this->options['interpolation'][0], '/').'\s*/A',
71
- 'interpolation_end' => '/\s*'.preg_quote($this->options['interpolation'][1], '/').'/A',
72
  );
73
  }
74
 
@@ -287,6 +287,10 @@ class Twig_Lexer implements Twig_LexerInterface
287
 
288
  protected function lexRawData($tag)
289
  {
 
 
 
 
290
  if (!preg_match(str_replace('%s', $tag, $this->regexes['lex_raw_data']), $this->code, $match, PREG_OFFSET_CAPTURE, $this->cursor)) {
291
  throw new Twig_Error_Syntax(sprintf('Unexpected end of file: Unclosed "%s" block', $tag), $this->lineno, $this->filename);
292
  }
33
  protected $positions;
34
  protected $currentVarBlockLine;
35
 
36
+ const STATE_DATA = 0;
37
+ const STATE_BLOCK = 1;
38
+ const STATE_VAR = 2;
39
+ const STATE_STRING = 3;
40
+ const STATE_INTERPOLATION = 4;
41
+
42
+ const REGEX_NAME = '/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/A';
43
+ const REGEX_NUMBER = '/[0-9]+(?:\.[0-9]+)?/A';
44
+ const REGEX_STRING = '/"([^#"\\\\]*(?:\\\\.[^#"\\\\]*)*)"|\'([^\'\\\\]*(?:\\\\.[^\'\\\\]*)*)\'/As';
45
  const REGEX_DQ_STRING_DELIM = '/"/A';
46
+ const REGEX_DQ_STRING_PART = '/[^#"\\\\]*(?:(?:\\\\.|#(?!\{))[^#"\\\\]*)*/As';
47
+ const PUNCTUATION = '()[]{}?:.,|';
48
 
49
  public function __construct(Twig_Environment $env, array $options = array())
50
  {
51
  $this->env = $env;
52
 
53
  $this->options = array_merge(array(
54
+ 'tag_comment' => array('{#', '#}'),
55
+ 'tag_block' => array('{%', '%}'),
56
+ 'tag_variable' => array('{{', '}}'),
57
  'whitespace_trim' => '-',
58
+ 'interpolation' => array('#{', '}'),
59
  ), $options);
60
 
61
  $this->regexes = array(
62
+ 'lex_var' => '/\s*'.preg_quote($this->options['whitespace_trim'].$this->options['tag_variable'][1], '/').'\s*|\s*'.preg_quote($this->options['tag_variable'][1], '/').'/A',
63
+ 'lex_block' => '/\s*(?:'.preg_quote($this->options['whitespace_trim'].$this->options['tag_block'][1], '/').'\s*|\s*'.preg_quote($this->options['tag_block'][1], '/').')\n?/A',
64
+ 'lex_raw_data' => '/('.preg_quote($this->options['tag_block'][0].$this->options['whitespace_trim'], '/').'|'.preg_quote($this->options['tag_block'][0], '/').')\s*(?:end%s)\s*(?:'.preg_quote($this->options['whitespace_trim'].$this->options['tag_block'][1], '/').'\s*|\s*'.preg_quote($this->options['tag_block'][1], '/').')/s',
65
+ 'operator' => $this->getOperatorRegex(),
66
+ 'lex_comment' => '/(?:'.preg_quote($this->options['whitespace_trim'], '/').preg_quote($this->options['tag_comment'][1], '/').'\s*|'.preg_quote($this->options['tag_comment'][1], '/').')\n?/s',
67
+ 'lex_block_raw' => '/\s*(raw|verbatim)\s*(?:'.preg_quote($this->options['whitespace_trim'].$this->options['tag_block'][1], '/').'\s*|\s*'.preg_quote($this->options['tag_block'][1], '/').')/As',
68
+ 'lex_block_line' => '/\s*line\s+(\d+)\s*'.preg_quote($this->options['tag_block'][1], '/').'/As',
69
+ 'lex_tokens_start' => '/('.preg_quote($this->options['tag_variable'][0], '/').'|'.preg_quote($this->options['tag_block'][0], '/').'|'.preg_quote($this->options['tag_comment'][0], '/').')('.preg_quote($this->options['whitespace_trim'], '/').')?/s',
70
  'interpolation_start' => '/'.preg_quote($this->options['interpolation'][0], '/').'\s*/A',
71
+ 'interpolation_end' => '/\s*'.preg_quote($this->options['interpolation'][1], '/').'/A',
72
  );
73
  }
74
 
287
 
288
  protected function lexRawData($tag)
289
  {
290
+ if ('raw' === $tag) {
291
+ @trigger_error(sprintf('Twig Tag "raw" is deprecated. Use "verbatim" instead in %s at line %d.', $this->filename, $this->lineno), E_USER_DEPRECATED);
292
+ }
293
+
294
  if (!preg_match(str_replace('%s', $tag, $this->regexes['lex_raw_data']), $this->code, $match, PREG_OFFSET_CAPTURE, $this->cursor)) {
295
  throw new Twig_Error_Syntax(sprintf('Unexpected end of file: Unclosed "%s" block', $tag), $this->lineno, $this->filename);
296
  }
vendor/twig/twig/lib/Twig/Loader/Array.php CHANGED
@@ -29,8 +29,6 @@ class Twig_Loader_Array implements Twig_LoaderInterface, Twig_ExistsLoaderInterf
29
  * Constructor.
30
  *
31
  * @param array $templates An array of templates (keys are the names, and values are the source code)
32
- *
33
- * @see Twig_Loader
34
  */
35
  public function __construct(array $templates)
36
  {
29
  * Constructor.
30
  *
31
  * @param array $templates An array of templates (keys are the names, and values are the source code)
 
 
32
  */
33
  public function __construct(array $templates)
34
  {
vendor/twig/twig/lib/Twig/Loader/Filesystem.php CHANGED
@@ -21,6 +21,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface, Twig_ExistsLoaderI
21
 
22
  protected $paths = array();
23
  protected $cache = array();
 
24
 
25
  /**
26
  * Constructor.
@@ -87,7 +88,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface, Twig_ExistsLoaderI
87
  public function addPath($path, $namespace = self::MAIN_NAMESPACE)
88
  {
89
  // invalidate the cache
90
- $this->cache = array();
91
 
92
  if (!is_dir($path)) {
93
  throw new Twig_Error_Loader(sprintf('The "%s" directory does not exist.', $path));
@@ -107,7 +108,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface, Twig_ExistsLoaderI
107
  public function prependPath($path, $namespace = self::MAIN_NAMESPACE)
108
  {
109
  // invalidate the cache
110
- $this->cache = array();
111
 
112
  if (!is_dir($path)) {
113
  throw new Twig_Error_Loader(sprintf('The "%s" directory does not exist.', $path));
@@ -150,9 +151,7 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface, Twig_ExistsLoaderI
150
  }
151
 
152
  try {
153
- $this->findTemplate($name);
154
-
155
- return true;
156
  } catch (Twig_Error_Loader $exception) {
157
  return false;
158
  }
@@ -168,18 +167,33 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface, Twig_ExistsLoaderI
168
 
169
  protected function findTemplate($name)
170
  {
 
171
  $name = $this->normalizeName($name);
172
 
173
  if (isset($this->cache[$name])) {
174
  return $this->cache[$name];
175
  }
176
 
 
 
 
 
 
 
 
 
177
  $this->validateName($name);
178
 
179
  list($namespace, $shortname) = $this->parseName($name);
180
 
181
  if (!isset($this->paths[$namespace])) {
182
- throw new Twig_Error_Loader(sprintf('There are no registered paths for namespace "%s".', $namespace));
 
 
 
 
 
 
183
  }
184
 
185
  foreach ($this->paths[$namespace] as $path) {
@@ -192,7 +206,13 @@ class Twig_Loader_Filesystem implements Twig_LoaderInterface, Twig_ExistsLoaderI
192
  }
193
  }
194
 
195
- throw new Twig_Error_Loader(sprintf('Unable to find template "%s" (looked into: %s).', $name, implode(', ', $this->paths[$namespace])));
 
 
 
 
 
 
196
  }
197
 
198
  protected function parseName($name, $default = self::MAIN_NAMESPACE)
21
 
22
  protected $paths = array();
23
  protected $cache = array();
24
+ protected $errorCache = array();
25
 
26
  /**
27
  * Constructor.
88
  public function addPath($path, $namespace = self::MAIN_NAMESPACE)
89
  {
90
  // invalidate the cache
91
+ $this->cache = $this->errorCache = array();
92
 
93
  if (!is_dir($path)) {
94
  throw new Twig_Error_Loader(sprintf('The "%s" directory does not exist.', $path));
108
  public function prependPath($path, $namespace = self::MAIN_NAMESPACE)
109
  {
110
  // invalidate the cache
111
+ $this->cache = $this->errorCache = array();
112
 
113
  if (!is_dir($path)) {
114
  throw new Twig_Error_Loader(sprintf('The "%s" directory does not exist.', $path));
151
  }
152
 
153
  try {
154
+ return false !== $this->findTemplate($name, false);
 
 
155
  } catch (Twig_Error_Loader $exception) {
156
  return false;
157
  }
167
 
168
  protected function findTemplate($name)
169
  {
170
+ $throw = func_num_args() > 1 ? func_get_arg(1) : true;
171
  $name = $this->normalizeName($name);
172
 
173
  if (isset($this->cache[$name])) {
174
  return $this->cache[$name];
175
  }
176
 
177
+ if (isset($this->errorCache[$name])) {
178
+ if (!$throw) {
179
+ return false;
180
+ }
181
+
182
+ throw new Twig_Error_Loader($this->errorCache[$name]);
183
+ }
184
+
185
  $this->validateName($name);
186
 
187
  list($namespace, $shortname) = $this->parseName($name);
188
 
189
  if (!isset($this->paths[$namespace])) {
190
+ $this->errorCache[$name] = sprintf('There are no registered paths for namespace "%s".', $namespace);
191
+
192
+ if (!$throw) {
193
+ return false;
194
+ }
195
+
196
+ throw new Twig_Error_Loader($this->errorCache[$name]);
197
  }
198
 
199
  foreach ($this->paths[$namespace] as $path) {
206
  }
207
  }
208
 
209
+ $this->errorCache[$name] = sprintf('Unable to find template "%s" (looked into: %s).', $name, implode(', ', $this->paths[$namespace]));
210
+
211
+ if (!$throw) {
212
+ return false;
213
+ }
214
+
215
+ throw new Twig_Error_Loader($this->errorCache[$name]);
216
  }
217
 
218
  protected function parseName($name, $default = self::MAIN_NAMESPACE)
vendor/twig/twig/lib/Twig/Loader/String.php CHANGED
@@ -9,6 +9,8 @@
9
  * file that was distributed with this source code.
10
  */
11
 
 
 
12
  /**
13
  * Loads a template from a string.
14
  *
9
  * file that was distributed with this source code.
10
  */
11
 
12
+ @trigger_error('The Twig_Loader_String class is deprecated since version 1.18.1 and will be removed in 2.0. Use Twig_Loader_Array instead.', E_USER_DEPRECATED);
13
+
14
  /**
15
  * Loads a template from a string.
16
  *
vendor/twig/twig/lib/Twig/LoaderInterface.php CHANGED
@@ -41,8 +41,9 @@ interface Twig_LoaderInterface
41
  /**
42
  * Returns true if the template is still fresh.
43
  *
44
- * @param string $name The template name
45
- * @param timestamp $time The last modification time of the cached template
 
46
  *
47
  * @return bool true if the template is fresh, false otherwise
48
  *
41
  /**
42
  * Returns true if the template is still fresh.
43
  *
44
+ * @param string $name The template name
45
+ * @param int $time Timestamp of the last modification time of the
46
+ * cached template
47
  *
48
  * @return bool true if the template is fresh, false otherwise
49
  *
vendor/twig/twig/lib/Twig/Node.php CHANGED
@@ -74,6 +74,8 @@ class Twig_Node implements Twig_NodeInterface
74
  */
75
  public function toXml($asDom = false)
76
  {
 
 
77
  $dom = new DOMDocument('1.0', 'UTF-8');
78
  $dom->formatOutput = true;
79
  $dom->appendChild($xml = $dom->createElement('twig'));
@@ -122,7 +124,7 @@ class Twig_Node implements Twig_NodeInterface
122
  /**
123
  * Returns true if the attribute is defined.
124
  *
125
- * @param string The attribute name
126
  *
127
  * @return bool true if the attribute is defined, false otherwise
128
  */
@@ -132,11 +134,11 @@ class Twig_Node implements Twig_NodeInterface
132
  }
133
 
134
  /**
135
- * Gets an attribute.
136
  *
137
- * @param string The attribute name
138
  *
139
- * @return mixed The attribute value
140
  */
141
  public function getAttribute($name)
142
  {
@@ -148,10 +150,10 @@ class Twig_Node implements Twig_NodeInterface
148
  }
149
 
150
  /**
151
- * Sets an attribute.
152
  *
153
- * @param string The attribute name
154
- * @param mixed The attribute value
155
  */
156
  public function setAttribute($name, $value)
157
  {
@@ -159,9 +161,9 @@ class Twig_Node implements Twig_NodeInterface
159
  }
160
 
161
  /**
162
- * Removes an attribute.
163
  *
164
- * @param string The attribute name
165
  */
166
  public function removeAttribute($name)
167
  {
@@ -169,11 +171,11 @@ class Twig_Node implements Twig_NodeInterface
169
  }
170
 
171
  /**
172
- * Returns true if the node with the given identifier exists.
173
  *
174
- * @param string The node name
175
  *
176
- * @return bool true if the node with the given name exists, false otherwise
177
  */
178
  public function hasNode($name)
179
  {
@@ -183,9 +185,9 @@ class Twig_Node implements Twig_NodeInterface
183
  /**
184
  * Gets a node by name.
185
  *
186
- * @param string The node name
187
  *
188
- * @return Twig_Node A Twig_Node instance
189
  */
190
  public function getNode($name)
191
  {
@@ -199,8 +201,8 @@ class Twig_Node implements Twig_NodeInterface
199
  /**
200
  * Sets a node.
201
  *
202
- * @param string The node name
203
- * @param Twig_Node A Twig_Node instance
204
  */
205
  public function setNode($name, $node = null)
206
  {
@@ -210,7 +212,7 @@ class Twig_Node implements Twig_NodeInterface
210
  /**
211
  * Removes a node by name.
212
  *
213
- * @param string The node name
214
  */
215
  public function removeNode($name)
216
  {
74
  */
75
  public function toXml($asDom = false)
76
  {
77
+ @trigger_error(sprintf('%s is deprecated.', __METHOD__), E_USER_DEPRECATED);
78
+
79
  $dom = new DOMDocument('1.0', 'UTF-8');
80
  $dom->formatOutput = true;
81
  $dom->appendChild($xml = $dom->createElement('twig'));
124
  /**
125
  * Returns true if the attribute is defined.
126
  *
127
+ * @param string $name The attribute name
128
  *
129
  * @return bool true if the attribute is defined, false otherwise
130
  */
134
  }
135
 
136
  /**
137
+ * Gets an attribute value by name.
138
  *
139
+ * @param string $name
140
  *
141
+ * @return mixed
142
  */
143
  public function getAttribute($name)
144
  {
150
  }
151
 
152
  /**
153
+ * Sets an attribute by name to a value.
154
  *
155
+ * @param string $name
156
+ * @param mixed $value
157
  */
158
  public function setAttribute($name, $value)
159
  {
161
  }
162
 
163
  /**
164
+ * Removes an attribute by name.
165
  *
166
+ * @param string $name
167
  */
168
  public function removeAttribute($name)
169
  {
171
  }
172
 
173
  /**
174
+ * Returns true if the node with the given name exists.
175
  *
176
+ * @param string $name
177
  *
178
+ * @return bool
179
  */
180
  public function hasNode($name)
181
  {
185
  /**
186
  * Gets a node by name.
187
  *
188
+ * @param string $name
189
  *
190
+ * @return Twig_Node
191
  */
192
  public function getNode($name)
193
  {
201
  /**
202
  * Sets a node.
203
  *
204
+ * @param string $name
205
+ * @param Twig_Node $node
206
  */
207
  public function setNode($name, $node = null)
208
  {
212
  /**
213
  * Removes a node by name.
214
  *
215
+ * @param string $name
216
  */
217
  public function removeNode($name)
218
  {
vendor/twig/twig/lib/Twig/Node/CheckSecurity.php CHANGED
@@ -41,9 +41,9 @@ class Twig_Node_CheckSecurity extends Twig_Node
41
  }
42
 
43
  $compiler
44
- ->write("\$tags = ")->repr(array_filter($tags))->raw(";\n")
45
- ->write("\$filters = ")->repr(array_filter($filters))->raw(";\n")
46
- ->write("\$functions = ")->repr(array_filter($functions))->raw(";\n\n")
47
  ->write("try {\n")
48
  ->indent()
49
  ->write("\$this->env->getExtension('sandbox')->checkSecurity(\n")
41
  }
42
 
43
  $compiler
44
+ ->write('$tags = ')->repr(array_filter($tags))->raw(";\n")
45
+ ->write('$filters = ')->repr(array_filter($filters))->raw(";\n")
46
+ ->write('$functions = ')->repr(array_filter($functions))->raw(";\n\n")
47
  ->write("try {\n")
48
  ->indent()
49
  ->write("\$this->env->getExtension('sandbox')->checkSecurity(\n")
vendor/twig/twig/lib/Twig/Node/Embed.php CHANGED
@@ -28,7 +28,7 @@ class Twig_Node_Embed extends Twig_Node_Include
28
  protected function addGetTemplate(Twig_Compiler $compiler)
29
  {
30
  $compiler
31
- ->write("\$this->loadTemplate(")
32
  ->string($this->getAttribute('filename'))
33
  ->raw(', ')
34
  ->repr($compiler->getFilename())
@@ -36,7 +36,7 @@ class Twig_Node_Embed extends Twig_Node_Include
36
  ->repr($this->getLine())
37
  ->raw(', ')
38
  ->string($this->getAttribute('index'))
39
- ->raw(")")
40
  ;
41
  }
42
  }
28
  protected function addGetTemplate(Twig_Compiler $compiler)
29
  {
30
  $compiler
31
+ ->write('$this->loadTemplate(')
32
  ->string($this->getAttribute('filename'))
33
  ->raw(', ')
34
  ->repr($compiler->getFilename())
36
  ->repr($this->getLine())
37
  ->raw(', ')
38
  ->string($this->getAttribute('index'))
39
+ ->raw(')')
40
  ;
41
  }
42
  }
vendor/twig/twig/lib/Twig/Node/Expression/BlockReference.php CHANGED
@@ -36,15 +36,15 @@ class Twig_Node_Expression_BlockReference extends Twig_Node_Expression
36
  if ($this->getAttribute('output')) {
37
  $compiler
38
  ->addDebugInfo($this)
39
- ->write("\$this->displayBlock(")
40
  ->subcompile($this->getNode('name'))
41
  ->raw(", \$context, \$blocks);\n")
42
  ;
43
  } else {
44
  $compiler
45
- ->raw("\$this->renderBlock(")
46
  ->subcompile($this->getNode('name'))
47
- ->raw(", \$context, \$blocks)")
48
  ;
49
  }
50
  }
36
  if ($this->getAttribute('output')) {
37
  $compiler
38
  ->addDebugInfo($this)
39
+ ->write('$this->displayBlock(')
40
  ->subcompile($this->getNode('name'))
41
  ->raw(", \$context, \$blocks);\n")
42
  ;
43
  } else {
44
  $compiler
45
+ ->raw('$this->renderBlock(')
46
  ->subcompile($this->getNode('name'))
47
+ ->raw(', $context, $blocks)')
48
  ;
49
  }
50
  }
vendor/twig/twig/lib/Twig/Node/Expression/Call.php CHANGED
@@ -106,12 +106,19 @@ abstract class Twig_Node_Expression_Call extends Twig_Node_Expression
106
  $parameters[$name] = $node;
107
  }
108
 
109
- if (!$named) {
 
110
  return $parameters;
111
  }
112
 
113
  if (!$callable) {
114
- throw new LogicException(sprintf('Named arguments are not supported for %s "%s".', $callType, $callName));
 
 
 
 
 
 
115
  }
116
 
117
  // manage named arguments
@@ -141,6 +148,19 @@ abstract class Twig_Node_Expression_Call extends Twig_Node_Expression
141
  array_shift($definition);
142
  }
143
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
144
 
145
  $arguments = array();
146
  $names = array();
@@ -185,6 +205,23 @@ abstract class Twig_Node_Expression_Call extends Twig_Node_Expression
185
  }
186
  }
187
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  if (!empty($parameters)) {
189
  $unknownParameter = null;
190
  foreach ($parameters as $parameter) {
106
  $parameters[$name] = $node;
107
  }
108
 
109
+ $isVariadic = $this->hasAttribute('is_variadic') && $this->getAttribute('is_variadic');
110
+ if (!$named && !$isVariadic) {
111
  return $parameters;
112
  }
113
 
114
  if (!$callable) {
115
+ if ($named) {
116
+ $message = sprintf('Named arguments are not supported for %s "%s".', $callType, $callName);
117
+ } else {
118
+ $message = sprintf('Arbitrary positional arguments are not supported for %s "%s".', $callType, $callName);
119
+ }
120
+
121
+ throw new LogicException($message);
122
  }
123
 
124
  // manage named arguments
148
  array_shift($definition);
149
  }
150
  }
151
+ if ($isVariadic) {
152
+ $argument = end($definition);
153
+ if ($argument && $argument->isArray() && $argument->isDefaultValueAvailable() && array() === $argument->getDefaultValue()) {
154
+ array_pop($definition);
155
+ } else {
156
+ $callableName = $r->name;
157
+ if ($r->getDeclaringClass()) {
158
+ $callableName = $r->getDeclaringClass()->name.'::'.$callableName;
159
+ }
160
+
161
+ throw new LogicException(sprintf('The last parameter of "%s" for %s "%s" must be an array with default value, eg. "array $arg = array()".', $callableName, $callType, $callName));
162
+ }
163
+ }
164
 
165
  $arguments = array();
166
  $names = array();
205
  }
206
  }
207
 
208
+ if ($isVariadic) {
209
+ $arbitraryArguments = new Twig_Node_Expression_Array(array(), -1);
210
+ foreach ($parameters as $key => $value) {
211
+ if (is_int($key)) {
212
+ $arbitraryArguments->addElement($value);
213
+ } else {
214
+ $arbitraryArguments->addElement($value, new Twig_Node_Expression_Constant($key, -1));
215
+ }
216
+ unset($parameters[$key]);
217
+ }
218
+
219
+ if ($arbitraryArguments->count()) {
220
+ $arguments = array_merge($arguments, $optionalArguments);
221
+ $arguments[] = $arbitraryArguments;
222
+ }
223
+ }
224
+
225
  if (!empty($parameters)) {
226
  $unknownParameter = null;
227
  foreach ($parameters as $parameter) {
vendor/twig/twig/lib/Twig/Node/Expression/Filter.php CHANGED
@@ -30,6 +30,9 @@ class Twig_Node_Expression_Filter extends Twig_Node_Expression_Call
30
  if ($filter instanceof Twig_FilterCallableInterface || $filter instanceof Twig_SimpleFilter) {
31
  $this->setAttribute('callable', $filter->getCallable());
32
  }
 
 
 
33
 
34
  $this->compileCallable($compiler);
35
  }
30
  if ($filter instanceof Twig_FilterCallableInterface || $filter instanceof Twig_SimpleFilter) {
31
  $this->setAttribute('callable', $filter->getCallable());
32
  }
33
+ if ($filter instanceof Twig_SimpleFilter) {
34
+ $this->setAttribute('is_variadic', $filter->isVariadic());
35
+ }
36
 
37
  $this->compileCallable($compiler);
38
  }
vendor/twig/twig/lib/Twig/Node/Expression/Function.php CHANGED
@@ -29,6 +29,9 @@ class Twig_Node_Expression_Function extends Twig_Node_Expression_Call
29
  if ($function instanceof Twig_FunctionCallableInterface || $function instanceof Twig_SimpleFunction) {
30
  $this->setAttribute('callable', $function->getCallable());
31
  }
 
 
 
32
 
33
  $this->compileCallable($compiler);
34
  }
29
  if ($function instanceof Twig_FunctionCallableInterface || $function instanceof Twig_SimpleFunction) {
30
  $this->setAttribute('callable', $function->getCallable());
31
  }
32
+ if ($function instanceof Twig_SimpleFunction) {
33
+ $this->setAttribute('is_variadic', $function->isVariadic());
34
+ }
35
 
36
  $this->compileCallable($compiler);
37
  }
vendor/twig/twig/lib/Twig/Node/Expression/Name.php CHANGED
@@ -12,7 +12,7 @@
12
  class Twig_Node_Expression_Name extends Twig_Node_Expression
13
  {
14
  protected $specialVars = array(
15
- '_self' => '$this',
16
  '_context' => '$context',
17
  '_charset' => '$this->env->getCharset()',
18
  );
@@ -30,11 +30,19 @@ class Twig_Node_Expression_Name extends Twig_Node_Expression
30
 
31
  if ($this->getAttribute('is_defined_test')) {
32
  if ($this->isSpecial()) {
 
 
 
 
33
  $compiler->repr(true);
34
  } else {
35
  $compiler->raw('array_key_exists(')->repr($name)->raw(', $context)');
36
  }
37
  } elseif ($this->isSpecial()) {
 
 
 
 
38
  $compiler->raw($this->specialVars[$name]);
39
  } elseif ($this->getAttribute('always_defined')) {
40
  $compiler
12
  class Twig_Node_Expression_Name extends Twig_Node_Expression
13
  {
14
  protected $specialVars = array(
15
+ '_self' => '$this',
16
  '_context' => '$context',
17
  '_charset' => '$this->env->getCharset()',
18
  );
30
 
31
  if ($this->getAttribute('is_defined_test')) {
32
  if ($this->isSpecial()) {
33
+ if ('_self' === $name) {
34
+ @trigger_error(sprintf('Global variable "_self" is deprecated in %s at line %d', '?', $this->getLine()), E_USER_DEPRECATED);
35
+ }
36
+
37
  $compiler->repr(true);
38
  } else {
39
  $compiler->raw('array_key_exists(')->repr($name)->raw(', $context)');
40
  }
41
  } elseif ($this->isSpecial()) {
42
+ if ('_self' === $name) {
43
+ @trigger_error(sprintf('Global variable "_self" is deprecated in %s at line %d', '?', $this->getLine()), E_USER_DEPRECATED);
44
+ }
45
+
46
  $compiler->raw($this->specialVars[$name]);
47
  } elseif ($this->getAttribute('always_defined')) {
48
  $compiler
vendor/twig/twig/lib/Twig/Node/Expression/Parent.php CHANGED
@@ -32,15 +32,15 @@ class Twig_Node_Expression_Parent extends Twig_Node_Expression
32
  if ($this->getAttribute('output')) {
33
  $compiler
34
  ->addDebugInfo($this)
35
- ->write("\$this->displayParentBlock(")
36
  ->string($this->getAttribute('name'))
37
  ->raw(", \$context, \$blocks);\n")
38
  ;
39
  } else {
40
  $compiler
41
- ->raw("\$this->renderParentBlock(")
42
  ->string($this->getAttribute('name'))
43
- ->raw(", \$context, \$blocks)")
44
  ;
45
  }
46
  }
32
  if ($this->getAttribute('output')) {
33
  $compiler
34
  ->addDebugInfo($this)
35
+ ->write('$this->displayParentBlock(')
36
  ->string($this->getAttribute('name'))
37
  ->raw(", \$context, \$blocks);\n")
38
  ;
39
  } else {
40
  $compiler
41
+ ->raw('$this->renderParentBlock(')
42
  ->string($this->getAttribute('name'))
43
+ ->raw(', $context, $blocks)')
44
  ;
45
  }
46
  }
vendor/twig/twig/lib/Twig/Node/Expression/Test.php CHANGED
@@ -26,6 +26,9 @@ class Twig_Node_Expression_Test extends Twig_Node_Expression_Call
26
  if ($test instanceof Twig_TestCallableInterface || $test instanceof Twig_SimpleTest) {
27
  $this->setAttribute('callable', $test->getCallable());
28
  }
 
 
 
29
 
30
  $this->compileCallable($compiler);
31
  }
26
  if ($test instanceof Twig_TestCallableInterface || $test instanceof Twig_SimpleTest) {
27
  $this->setAttribute('callable', $test->getCallable());
28
  }
29
+ if ($test instanceof Twig_SimpleTest) {
30
+ $this->setAttribute('is_variadic', $test->isVariadic());
31
+ }
32
 
33
  $this->compileCallable($compiler);
34
  }
vendor/twig/twig/lib/Twig/Node/For.php CHANGED
@@ -82,7 +82,7 @@ class Twig_Node_For extends Twig_Node
82
  $compiler
83
  ->write("foreach (\$context['_seq'] as ")
84
  ->subcompile($this->getNode('key_target'))
85
- ->raw(" => ")
86
  ->subcompile($this->getNode('value_target'))
87
  ->raw(") {\n")
88
  ->indent()
82
  $compiler
83
  ->write("foreach (\$context['_seq'] as ")
84
  ->subcompile($this->getNode('key_target'))
85
+ ->raw(' => ')
86
  ->subcompile($this->getNode('value_target'))
87
  ->raw(") {\n")
88
  ->indent()
vendor/twig/twig/lib/Twig/Node/If.php CHANGED
@@ -34,7 +34,7 @@ class Twig_Node_If extends Twig_Node
34
  if ($i > 0) {
35
  $compiler
36
  ->outdent()
37
- ->write("} elseif (")
38
  ;
39
  } else {
40
  $compiler
34
  if ($i > 0) {
35
  $compiler
36
  ->outdent()
37
+ ->write('} elseif (')
38
  ;
39
  } else {
40
  $compiler
vendor/twig/twig/lib/Twig/Node/Import.php CHANGED
@@ -36,7 +36,7 @@ class Twig_Node_Import extends Twig_Node
36
  ;
37
 
38
  if ($this->getNode('expr') instanceof Twig_Node_Expression_Name && '_self' === $this->getNode('expr')->getAttribute('name')) {
39
- $compiler->raw("\$this");
40
  } else {
41
  $compiler
42
  ->raw('$this->loadTemplate(')
@@ -45,7 +45,7 @@ class Twig_Node_Import extends Twig_Node
45
  ->repr($compiler->getFilename())
46
  ->raw(', ')
47
  ->repr($this->getLine())
48
- ->raw(")")
49
  ;
50
  }
51
 
36
  ;
37
 
38
  if ($this->getNode('expr') instanceof Twig_Node_Expression_Name && '_self' === $this->getNode('expr')->getAttribute('name')) {
39
+ $compiler->raw('$this');
40
  } else {
41
  $compiler
42
  ->raw('$this->loadTemplate(')
45
  ->repr($compiler->getFilename())
46
  ->raw(', ')
47
  ->repr($this->getLine())
48
+ ->raw(')')
49
  ;
50
  }
51
 
vendor/twig/twig/lib/Twig/Node/Include.php CHANGED
@@ -61,13 +61,13 @@ class Twig_Node_Include extends Twig_Node implements Twig_NodeOutputInterface
61
  protected function addGetTemplate(Twig_Compiler $compiler)
62
  {
63
  $compiler
64
- ->write("\$this->loadTemplate(")
65
  ->subcompile($this->getNode('expr'))
66
  ->raw(', ')
67
  ->repr($compiler->getFilename())
68
  ->raw(', ')
69
  ->repr($this->getLine())
70
- ->raw(")")
71
  ;
72
  }
73
 
61
  protected function addGetTemplate(Twig_Compiler $compiler)
62
  {
63
  $compiler
64
+ ->write('$this->loadTemplate(')
65
  ->subcompile($this->getNode('expr'))
66
  ->raw(', ')
67
  ->repr($compiler->getFilename())
68
  ->raw(', ')
69
  ->repr($this->getLine())
70
+ ->raw(')')
71
  ;
72
  }
73
 
vendor/twig/twig/lib/Twig/Node/Macro.php CHANGED
@@ -16,8 +16,16 @@
16
  */
17
  class Twig_Node_Macro extends Twig_Node
18
  {
 
 
19
  public function __construct($name, Twig_NodeInterface $body, Twig_NodeInterface $arguments, $lineno, $tag = null)
20
  {
 
 
 
 
 
 
21
  parent::__construct(array('body' => $body, 'arguments' => $arguments), array('name' => $name), $lineno, $tag);
22
  }
23
 
@@ -30,7 +38,7 @@ class Twig_Node_Macro extends Twig_Node
30
  {
31
  $compiler
32
  ->addDebugInfo($this)
33
- ->write(sprintf("public function get%s(", $this->getAttribute('name')))
34
  ;
35
 
36
  $count = count($this->getNode('arguments'));
@@ -46,36 +54,55 @@ class Twig_Node_Macro extends Twig_Node
46
  }
47
  }
48
 
 
 
 
 
 
 
 
 
49
  $compiler
50
  ->raw(")\n")
51
  ->write("{\n")
52
  ->indent()
53
  ;
54
 
55
- if (!count($this->getNode('arguments'))) {
56
- $compiler->write("\$context = \$this->env->getGlobals();\n\n");
57
- } else {
 
 
 
58
  $compiler
59
- ->write("\$context = \$this->env->mergeGlobals(array(\n")
60
- ->indent()
 
 
61
  ;
 
62
 
63
- foreach ($this->getNode('arguments') as $name => $default) {
64
- $compiler
65
- ->write('')
66
- ->string($name)
67
- ->raw(' => $__'.$name.'__')
68
- ->raw(",\n")
69
- ;
70
- }
71
 
 
 
 
72
  $compiler
73
- ->outdent()
74
- ->write("));\n\n")
 
 
 
75
  ;
76
  }
77
 
78
  $compiler
 
 
79
  ->write("\$blocks = array();\n\n")
80
  ->write("ob_start();\n")
81
  ->write("try {\n")
16
  */
17
  class Twig_Node_Macro extends Twig_Node
18
  {
19
+ const VARARGS_NAME = 'varargs';
20
+
21
  public function __construct($name, Twig_NodeInterface $body, Twig_NodeInterface $arguments, $lineno, $tag = null)
22
  {
23
+ foreach ($arguments as $argumentName => $argument) {
24
+ if (self::VARARGS_NAME === $argumentName) {
25
+ throw new Twig_Error_Syntax(sprintf('The argument "%s" in macro "%s" cannot be defined because the variable "%s" is reserved for arbitrary arguments', self::VARARGS_NAME, $name, self::VARARGS_NAME), $argument->getLine());
26
+ }
27
+ }
28
+
29
  parent::__construct(array('body' => $body, 'arguments' => $arguments), array('name' => $name), $lineno, $tag);
30
  }
31
 
38
  {
39
  $compiler
40
  ->addDebugInfo($this)
41
+ ->write(sprintf('public function get%s(', $this->getAttribute('name')))
42
  ;
43
 
44
  $count = count($this->getNode('arguments'));
54
  }
55
  }
56
 
57
+ if (PHP_VERSION_ID >= 50600) {
58
+ if ($count) {
59
+ $compiler->raw(', ');
60
+ }
61
+
62
+ $compiler->raw('...$__varargs__');
63
+ }
64
+
65
  $compiler
66
  ->raw(")\n")
67
  ->write("{\n")
68
  ->indent()
69
  ;
70
 
71
+ $compiler
72
+ ->write("\$context = \$this->env->mergeGlobals(array(\n")
73
+ ->indent()
74
+ ;
75
+
76
+ foreach ($this->getNode('arguments') as $name => $default) {
77
  $compiler
78
+ ->addIndentation()
79
+ ->string($name)
80
+ ->raw(' => $__'.$name.'__')
81
+ ->raw(",\n")
82
  ;
83
+ }
84
 
85
+ $compiler
86
+ ->addIndentation()
87
+ ->string(self::VARARGS_NAME)
88
+ ->raw(' => ')
89
+ ;
 
 
 
90
 
91
+ if (PHP_VERSION_ID >= 50600) {
92
+ $compiler->raw("\$__varargs__,\n");
93
+ } else {
94
  $compiler
95
+ ->raw('func_num_args() > ')
96
+ ->repr($count)
97
+ ->raw(' ? array_slice(func_get_args(), ')
98
+ ->repr($count)
99
+ ->raw(") : array(),\n")
100
  ;
101
  }
102
 
103
  $compiler
104
+ ->outdent()
105
+ ->write("));\n\n")
106
  ->write("\$blocks = array();\n\n")
107
  ->write("ob_start();\n")
108
  ->write("try {\n")
vendor/twig/twig/lib/Twig/Node/Module.php CHANGED
@@ -107,20 +107,20 @@ class Twig_Node_Module extends Twig_Node
107
  ->write("protected function doGetParent(array \$context)\n", "{\n")
108
  ->indent()
109
  ->addDebugInfo($parent)
110
- ->write("return ")
111
  ;
112
 
113
  if ($parent instanceof Twig_Node_Expression_Constant) {
114
  $compiler->subcompile($parent);
115
  } else {
116
  $compiler
117
- ->raw("\$this->loadTemplate(")
118
  ->subcompile($parent)
119
  ->raw(', ')
120
  ->repr($compiler->getFilename())
121
  ->raw(', ')
122
  ->repr($this->getNode('parent')->getLine())
123
- ->raw(")")
124
  ;
125
  }
126
 
@@ -136,7 +136,7 @@ class Twig_Node_Module extends Twig_Node
136
  $compiler
137
  ->write("\n\n")
138
  // if the filename contains */, add a blank to avoid a PHP parse error
139
- ->write("/* ".str_replace('*/', '* /', $this->getAttribute('filename'))." */\n")
140
  ->write('class '.$compiler->getEnvironment()->getTemplateClass($this->getAttribute('filename'), $this->getAttribute('index')))
141
  ->raw(sprintf(" extends %s\n", $compiler->getEnvironment()->getBaseTemplateClass()))
142
  ->write("{\n")
@@ -159,7 +159,7 @@ class Twig_Node_Module extends Twig_Node
159
  } elseif ($parent instanceof Twig_Node_Expression_Constant) {
160
  $compiler
161
  ->addDebugInfo($parent)
162
- ->write("\$this->parent = \$this->loadTemplate(")
163
  ->subcompile($parent)
164
  ->raw(', ')
165
  ->repr($compiler->getFilename())
@@ -189,23 +189,23 @@ class Twig_Node_Module extends Twig_Node
189
 
190
  foreach ($trait->getNode('targets') as $key => $value) {
191
  $compiler
192
- ->write(sprintf("if (!isset(\$_trait_%s_blocks[", $i))
193
  ->string($key)
194
  ->raw("])) {\n")
195
  ->indent()
196
  ->write("throw new Twig_Error_Runtime(sprintf('Block ")
197
  ->string($key)
198
- ->raw(" is not defined in trait ")
199
  ->subcompile($trait->getNode('template'))
200
  ->raw(".'));\n")
201
  ->outdent()
202
  ->write("}\n\n")
203
 
204
- ->write(sprintf("\$_trait_%s_blocks[", $i))
205
  ->subcompile($value)
206
- ->raw(sprintf("] = \$_trait_%s_blocks[", $i))
207
  ->string($key)
208
- ->raw(sprintf("]; unset(\$_trait_%s_blocks[", $i))
209
  ->string($key)
210
  ->raw("]);\n\n")
211
  ;
@@ -218,9 +218,9 @@ class Twig_Node_Module extends Twig_Node
218
  ->indent()
219
  ;
220
 
221
- for ($i = 0; $i < $countTraits; $i++) {
222
  $compiler
223
- ->write(sprintf("\$_trait_%s_blocks".($i == $countTraits - 1 ? '' : ',')."\n", $i))
224
  ;
225
  }
226
 
@@ -285,9 +285,9 @@ class Twig_Node_Module extends Twig_Node
285
  if (null !== $parent = $this->getNode('parent')) {
286
  $compiler->addDebugInfo($parent);
287
  if ($parent instanceof Twig_Node_Expression_Constant) {
288
- $compiler->write("\$this->parent");
289
  } else {
290
- $compiler->write("\$this->getParent(\$context)");
291
  }
292
  $compiler->raw("->display(\$context, array_merge(\$this->blocks, \$blocks));\n");
293
  }
@@ -393,7 +393,7 @@ class Twig_Node_Module extends Twig_Node
393
  {
394
  if ($node instanceof Twig_Node_Expression_Constant) {
395
  $compiler
396
- ->write(sprintf("%s = \$this->loadTemplate(", $var))
397
  ->subcompile($node)
398
  ->raw(', ')
399
  ->repr($compiler->getFilename())
@@ -402,22 +402,7 @@ class Twig_Node_Module extends Twig_Node
402
  ->raw(");\n")
403
  ;
404
  } else {
405
- $compiler
406
- ->write(sprintf("%s = ", $var))
407
- ->subcompile($node)
408
- ->raw(";\n")
409
- ->write(sprintf("if (!%s", $var))
410
- ->raw(" instanceof Twig_Template) {\n")
411
- ->indent()
412
- ->write(sprintf("%s = \$this->loadTemplate(%s")
413
- ->raw(', ')
414
- ->repr($compiler->getFilename())
415
- ->raw(', ')
416
- ->repr($node->getLine())
417
- ->raw(");\n", $var, $var))
418
- ->outdent()
419
- ->write("}\n")
420
- ;
421
  }
422
  }
423
  }
107
  ->write("protected function doGetParent(array \$context)\n", "{\n")
108
  ->indent()
109
  ->addDebugInfo($parent)
110
+ ->write('return ')
111
  ;
112
 
113
  if ($parent instanceof Twig_Node_Expression_Constant) {
114
  $compiler->subcompile($parent);
115
  } else {
116
  $compiler
117
+ ->raw('$this->loadTemplate(')
118
  ->subcompile($parent)
119
  ->raw(', ')
120
  ->repr($compiler->getFilename())
121
  ->raw(', ')
122
  ->repr($this->getNode('parent')->getLine())
123
+ ->raw(')')
124
  ;
125
  }
126
 
136
  $compiler
137
  ->write("\n\n")
138
  // if the filename contains */, add a blank to avoid a PHP parse error
139
+ ->write('/* '.str_replace('*/', '* /', $this->getAttribute('filename'))." */\n")
140
  ->write('class '.$compiler->getEnvironment()->getTemplateClass($this->getAttribute('filename'), $this->getAttribute('index')))
141
  ->raw(sprintf(" extends %s\n", $compiler->getEnvironment()->getBaseTemplateClass()))
142
  ->write("{\n")
159
  } elseif ($parent instanceof Twig_Node_Expression_Constant) {
160
  $compiler
161
  ->addDebugInfo($parent)
162
+ ->write('$this->parent = $this->loadTemplate(')
163
  ->subcompile($parent)
164
  ->raw(', ')
165
  ->repr($compiler->getFilename())
189
 
190
  foreach ($trait->getNode('targets') as $key => $value) {
191
  $compiler
192
+ ->write(sprintf('if (!isset($_trait_%s_blocks[', $i))
193
  ->string($key)
194
  ->raw("])) {\n")
195
  ->indent()
196
  ->write("throw new Twig_Error_Runtime(sprintf('Block ")
197
  ->string($key)
198
+ ->raw(' is not defined in trait ')
199
  ->subcompile($trait->getNode('template'))
200
  ->raw(".'));\n")
201
  ->outdent()
202
  ->write("}\n\n")
203
 
204
+ ->write(sprintf('$_trait_%s_blocks[', $i))
205
  ->subcompile($value)
206
+ ->raw(sprintf('] = $_trait_%s_blocks[', $i))
207
  ->string($key)
208
+ ->raw(sprintf(']; unset($_trait_%s_blocks[', $i))
209
  ->string($key)
210
  ->raw("]);\n\n")
211
  ;
218
  ->indent()
219
  ;
220
 
221
+ for ($i = 0; $i < $countTraits; ++$i) {
222
  $compiler
223
+ ->write(sprintf('$_trait_%s_blocks'.($i == $countTraits - 1 ? '' : ',')."\n", $i))
224
  ;
225
  }
226
 
285
  if (null !== $parent = $this->getNode('parent')) {
286
  $compiler->addDebugInfo($parent);
287
  if ($parent instanceof Twig_Node_Expression_Constant) {
288
+ $compiler->write('$this->parent');
289
  } else {
290
+ $compiler->write('$this->getParent($context)');
291
  }
292
  $compiler->raw("->display(\$context, array_merge(\$this->blocks, \$blocks));\n");
293
  }
393
  {
394
  if ($node instanceof Twig_Node_Expression_Constant) {
395
  $compiler
396
+ ->write(sprintf('%s = $this->loadTemplate(', $var))
397
  ->subcompile($node)
398
  ->raw(', ')
399
  ->repr($compiler->getFilename())
402
  ->raw(");\n")
403
  ;
404
  } else {
405
+ throw new LogicException('Trait templates can only be constant nodes');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
406
  }
407
  }
408
  }
vendor/twig/twig/lib/Twig/Node/SandboxedPrint.php CHANGED
@@ -47,6 +47,8 @@ class Twig_Node_SandboxedPrint extends Twig_Node_Print
47
  * This is mostly needed when another visitor adds filters (like the escaper one).
48
  *
49
  * @param Twig_Node $node A Node
 
 
50
  */
51
  protected function removeNodeFilter($node)
52
  {
47
  * This is mostly needed when another visitor adds filters (like the escaper one).
48
  *
49
  * @param Twig_Node $node A Node
50
+ *
51
+ * @return Twig_Node
52
  */
53
  protected function removeNodeFilter($node)
54
  {
vendor/twig/twig/lib/Twig/NodeTraverser.php CHANGED
@@ -19,7 +19,7 @@
19
  class Twig_NodeTraverser
20
  {
21
  protected $env;
22
- protected $visitors;
23
 
24
  /**
25
  * Constructor.
@@ -30,7 +30,6 @@ class Twig_NodeTraverser
30
  public function __construct(Twig_Environment $env, array $visitors = array())
31
  {
32
  $this->env = $env;
33
- $this->visitors = array();
34
  foreach ($visitors as $visitor) {
35
  $this->addVisitor($visitor);
36
  }
@@ -54,6 +53,8 @@ class Twig_NodeTraverser
54
  * Traverses a node and calls the registered visitors.
55
  *
56
  * @param Twig_NodeInterface $node A Twig_NodeInterface instance
 
 
57
  */
58
  public function traverse(Twig_NodeInterface $node)
59
  {
19
  class Twig_NodeTraverser
20
  {
21
  protected $env;
22
+ protected $visitors = array();
23
 
24
  /**
25
  * Constructor.
30
  public function __construct(Twig_Environment $env, array $visitors = array())
31
  {
32
  $this->env = $env;
 
33
  foreach ($visitors as $visitor) {
34
  $this->addVisitor($visitor);
35
  }
53
  * Traverses a node and calls the registered visitors.
54
  *
55
  * @param Twig_NodeInterface $node A Twig_NodeInterface instance
56
+ *
57
+ * @return Twig_NodeInterface
58
  */
59
  public function traverse(Twig_NodeInterface $node)
60
  {
vendor/twig/twig/lib/Twig/NodeVisitor/Escaper.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
16
  */
17
- class Twig_NodeVisitor_Escaper implements Twig_NodeVisitorInterface
18
  {
19
  protected $statusStack = array();
20
  protected $blocks = array();
@@ -29,14 +29,9 @@ class Twig_NodeVisitor_Escaper implements Twig_NodeVisitorInterface
29
  }
30
 
31
  /**
32
- * Called before child nodes are visited.
33
- *
34
- * @param Twig_NodeInterface $node The node to visit
35
- * @param Twig_Environment $env The Twig environment instance
36
- *
37
- * @return Twig_NodeInterface The modified node
38
  */
39
- public function enterNode(Twig_NodeInterface $node, Twig_Environment $env)
40
  {
41
  if ($node instanceof Twig_Node_Module) {
42
  if ($env->hasExtension('escaper') && $defaultStrategy = $env->getExtension('escaper')->getDefaultStrategy($node->getAttribute('filename'))) {
@@ -55,14 +50,9 @@ class Twig_NodeVisitor_Escaper implements Twig_NodeVisitorInterface
55
  }
56
 
57
  /**
58
- * Called after child nodes are visited.
59
- *
60
- * @param Twig_NodeInterface $node The node to visit
61
- * @param Twig_Environment $env The Twig environment instance
62
- *
63
- * @return Twig_NodeInterface The modified node
64
  */
65
- public function leaveNode(Twig_NodeInterface $node, Twig_Environment $env)
66
  {
67
  if ($node instanceof Twig_Node_Module) {
68
  $this->defaultStrategy = false;
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
16
  */
17
+ class Twig_NodeVisitor_Escaper extends Twig_BaseNodeVisitor
18
  {
19
  protected $statusStack = array();
20
  protected $blocks = array();
29
  }
30
 
31
  /**
32
+ * {@inheritdoc}
 
 
 
 
 
33
  */
34
+ protected function doEnterNode(Twig_Node $node, Twig_Environment $env)
35
  {
36
  if ($node instanceof Twig_Node_Module) {
37
  if ($env->hasExtension('escaper') && $defaultStrategy = $env->getExtension('escaper')->getDefaultStrategy($node->getAttribute('filename'))) {
50
  }
51
 
52
  /**
53
+ * {@inheritdoc}
 
 
 
 
 
54
  */
55
+ protected function doLeaveNode(Twig_Node $node, Twig_Environment $env)
56
  {
57
  if ($node instanceof Twig_Node_Module) {
58
  $this->defaultStrategy = false;
vendor/twig/twig/lib/Twig/NodeVisitor/Optimizer.php CHANGED
@@ -19,13 +19,13 @@
19
  *
20
  * @author Fabien Potencier <fabien@symfony.com>
21
  */
22
- class Twig_NodeVisitor_Optimizer implements Twig_NodeVisitorInterface
23
  {
24
- const OPTIMIZE_ALL = -1;
25
- const OPTIMIZE_NONE = 0;
26
- const OPTIMIZE_FOR = 2;
27
- const OPTIMIZE_RAW_FILTER = 4;
28
- const OPTIMIZE_VAR_ACCESS = 8;
29
 
30
  protected $loops = array();
31
  protected $loopsTargets = array();
@@ -50,7 +50,7 @@ class Twig_NodeVisitor_Optimizer implements Twig_NodeVisitorInterface
50
  /**
51
  * {@inheritdoc}
52
  */
53
- public function enterNode(Twig_NodeInterface $node, Twig_Environment $env)
54
  {
55
  if (self::OPTIMIZE_FOR === (self::OPTIMIZE_FOR & $this->optimizers)) {
56
  $this->enterOptimizeFor($node, $env);
@@ -76,7 +76,7 @@ class Twig_NodeVisitor_Optimizer implements Twig_NodeVisitorInterface
76
  /**
77
  * {@inheritdoc}
78
  */
79
- public function leaveNode(Twig_NodeInterface $node, Twig_Environment $env)
80
  {
81
  $expression = $node instanceof Twig_Node_Expression;
82
 
@@ -129,6 +129,8 @@ class Twig_NodeVisitor_Optimizer implements Twig_NodeVisitorInterface
129
  *
130
  * @param Twig_NodeInterface $node A Node
131
  * @param Twig_Environment $env The current Twig environment
 
 
132
  */
133
  protected function optimizePrintNode(Twig_NodeInterface $node, Twig_Environment $env)
134
  {
@@ -153,6 +155,8 @@ class Twig_NodeVisitor_Optimizer implements Twig_NodeVisitorInterface
153
  *
154
  * @param Twig_NodeInterface $node A Node
155
  * @param Twig_Environment $env The current Twig environment
 
 
156
  */
157
  protected function optimizeRawFilter(Twig_NodeInterface $node, Twig_Environment $env)
158
  {
19
  *
20
  * @author Fabien Potencier <fabien@symfony.com>
21
  */
22
+ class Twig_NodeVisitor_Optimizer extends Twig_BaseNodeVisitor
23
  {
24
+ const OPTIMIZE_ALL = -1;
25
+ const OPTIMIZE_NONE = 0;
26
+ const OPTIMIZE_FOR = 2;
27
+ const OPTIMIZE_RAW_FILTER = 4;
28
+ const OPTIMIZE_VAR_ACCESS = 8;
29
 
30
  protected $loops = array();
31
  protected $loopsTargets = array();
50
  /**
51
  * {@inheritdoc}
52
  */
53
+ protected function doEnterNode(Twig_Node $node, Twig_Environment $env)
54
  {
55
  if (self::OPTIMIZE_FOR === (self::OPTIMIZE_FOR & $this->optimizers)) {
56
  $this->enterOptimizeFor($node, $env);
76
  /**
77
  * {@inheritdoc}
78
  */
79
+ protected function doLeaveNode(Twig_Node $node, Twig_Environment $env)
80
  {
81
  $expression = $node instanceof Twig_Node_Expression;
82
 
129
  *
130
  * @param Twig_NodeInterface $node A Node
131
  * @param Twig_Environment $env The current Twig environment
132
+ *
133
+ * @return Twig_NodeInterface
134
  */
135
  protected function optimizePrintNode(Twig_NodeInterface $node, Twig_Environment $env)
136
  {
155
  *
156
  * @param Twig_NodeInterface $node A Node
157
  * @param Twig_Environment $env The current Twig environment
158
+ *
159
+ * @return Twig_NodeInterface
160
  */
161
  protected function optimizeRawFilter(Twig_NodeInterface $node, Twig_Environment $env)
162
  {
vendor/twig/twig/lib/Twig/NodeVisitor/SafeAnalysis.php CHANGED
@@ -1,6 +1,15 @@
1
  <?php
2
 
3
- class Twig_NodeVisitor_SafeAnalysis implements Twig_NodeVisitorInterface
 
 
 
 
 
 
 
 
 
4
  {
5
  protected $data = array();
6
  protected $safeVars = array();
@@ -48,12 +57,18 @@ class Twig_NodeVisitor_SafeAnalysis implements Twig_NodeVisitorInterface
48
  );
49
  }
50
 
51
- public function enterNode(Twig_NodeInterface $node, Twig_Environment $env)
 
 
 
52
  {
53
  return $node;
54
  }
55
 
56
- public function leaveNode(Twig_NodeInterface $node, Twig_Environment $env)
 
 
 
57
  {
58
  if ($node instanceof Twig_Node_Expression_Constant) {
59
  // constants are marked safe for all
1
  <?php
2
 
3
+ /*
4
+ * This file is part of Twig.
5
+ *
6
+ * (c) Fabien Potencier
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ class Twig_NodeVisitor_SafeAnalysis extends Twig_BaseNodeVisitor
13
  {
14
  protected $data = array();
15
  protected $safeVars = array();
57
  );
58
  }
59
 
60
+ /**
61
+ * {@inheritdoc}
62
+ */
63
+ protected function doEnterNode(Twig_Node $node, Twig_Environment $env)
64
  {
65
  return $node;
66
  }
67
 
68
+ /**
69
+ * {@inheritdoc}
70
+ */
71
+ protected function doLeaveNode(Twig_Node $node, Twig_Environment $env)
72
  {
73
  if ($node instanceof Twig_Node_Expression_Constant) {
74
  // constants are marked safe for all
vendor/twig/twig/lib/Twig/NodeVisitor/Sandbox.php CHANGED
@@ -14,7 +14,7 @@
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
16
  */
17
- class Twig_NodeVisitor_Sandbox implements Twig_NodeVisitorInterface
18
  {
19
  protected $inAModule = false;
20
  protected $tags;
@@ -22,14 +22,9 @@ class Twig_NodeVisitor_Sandbox implements Twig_NodeVisitorInterface
22
  protected $functions;
23
 
24
  /**
25
- * Called before child nodes are visited.
26
- *
27
- * @param Twig_NodeInterface $node The node to visit
28
- * @param Twig_Environment $env The Twig environment instance
29
- *
30
- * @return Twig_NodeInterface The modified node
31
  */
32
- public function enterNode(Twig_NodeInterface $node, Twig_Environment $env)
33
  {
34
  if ($node instanceof Twig_Node_Module) {
35
  $this->inAModule = true;
@@ -64,14 +59,9 @@ class Twig_NodeVisitor_Sandbox implements Twig_NodeVisitorInterface
64
  }
65
 
66
  /**
67
- * Called after child nodes are visited.
68
- *
69
- * @param Twig_NodeInterface $node The node to visit
70
- * @param Twig_Environment $env The Twig environment instance
71
- *
72
- * @return Twig_NodeInterface The modified node
73
  */
74
- public function leaveNode(Twig_NodeInterface $node, Twig_Environment $env)
75
  {
76
  if ($node instanceof Twig_Node_Module) {
77
  $this->inAModule = false;
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
16
  */
17
+ class Twig_NodeVisitor_Sandbox extends Twig_BaseNodeVisitor
18
  {
19
  protected $inAModule = false;
20
  protected $tags;
22
  protected $functions;
23
 
24
  /**
25
+ * {@inheritdoc}
 
 
 
 
 
26
  */
27
+ protected function doEnterNode(Twig_Node $node, Twig_Environment $env)
28
  {
29
  if ($node instanceof Twig_Node_Module) {
30
  $this->inAModule = true;
59
  }
60
 
61
  /**
62
+ * {@inheritdoc}
 
 
 
 
 
63
  */
64
+ protected function doLeaveNode(Twig_Node $node, Twig_Environment $env)
65
  {
66
  if ($node instanceof Twig_Node_Module) {
67
  $this->inAModule = false;
vendor/twig/twig/lib/Twig/Parser.php CHANGED
@@ -64,7 +64,7 @@ class Twig_Parser implements Twig_ParserInterface
64
  {
65
  // push all variables into the stack to keep the current state of the parser
66
  $vars = get_object_vars($this);
67
- unset($vars['stack'], $vars['env'], $vars['handlers'], $vars['visitors'], $vars['expressionParser']);
68
  $this->stack[] = $vars;
69
 
70
  // tag handlers
@@ -253,20 +253,29 @@ class Twig_Parser implements Twig_ParserInterface
253
  }
254
 
255
  public function setMacro($name, Twig_Node_Macro $node)
 
 
 
 
 
 
 
 
 
256
  {
257
  if (null === $this->reservedMacroNames) {
258
  $this->reservedMacroNames = array();
259
  $r = new ReflectionClass($this->env->getBaseTemplateClass());
260
  foreach ($r->getMethods() as $method) {
261
- $this->reservedMacroNames[] = $method->getName();
262
- }
263
- }
264
 
265
- if (in_array($name, $this->reservedMacroNames)) {
266
- throw new Twig_Error_Syntax(sprintf('"%s" cannot be used as a macro name as it is a reserved keyword', $name), $node->getLine(), $this->getFilename());
 
 
267
  }
268
 
269
- $this->macros[$name] = $node;
270
  }
271
 
272
  public function addTrait($trait)
64
  {
65
  // push all variables into the stack to keep the current state of the parser
66
  $vars = get_object_vars($this);
67
+ unset($vars['stack'], $vars['env'], $vars['handlers'], $vars['visitors'], $vars['expressionParser'], $vars['reservedMacroNames']);
68
  $this->stack[] = $vars;
69
 
70
  // tag handlers
253
  }
254
 
255
  public function setMacro($name, Twig_Node_Macro $node)
256
+ {
257
+ if ($this->isReservedMacroName($name)) {
258
+ throw new Twig_Error_Syntax(sprintf('"%s" cannot be used as a macro name as it is a reserved keyword', $name), $node->getLine(), $this->getFilename());
259
+ }
260
+
261
+ $this->macros[$name] = $node;
262
+ }
263
+
264
+ public function isReservedMacroName($name)
265
  {
266
  if (null === $this->reservedMacroNames) {
267
  $this->reservedMacroNames = array();
268
  $r = new ReflectionClass($this->env->getBaseTemplateClass());
269
  foreach ($r->getMethods() as $method) {
270
+ $methodName = strtolower($method->getName());
 
 
271
 
272
+ if ('get' === substr($methodName, 0, 3) && isset($methodName[3])) {
273
+ $this->reservedMacroNames[] = substr($methodName, 3);
274
+ }
275
+ }
276
  }
277
 
278
+ return in_array(strtolower($name), $this->reservedMacroNames);
279
  }
280
 
281
  public function addTrait($trait)
vendor/twig/twig/lib/Twig/Profiler/Dumper/Html.php CHANGED
@@ -14,7 +14,7 @@
14
  */
15
  class Twig_Profiler_Dumper_Html extends Twig_Profiler_Dumper_Text
16
  {
17
- static private $colors = array(
18
  'block' => '#dfd',
19
  'macro' => '#ddf',
20
  'template' => '#ffd',
14
  */
15
  class Twig_Profiler_Dumper_Html extends Twig_Profiler_Dumper_Text
16
  {
17
+ private static $colors = array(
18
  'block' => '#dfd',
19
  'macro' => '#ddf',
20
  'template' => '#ffd',
vendor/twig/twig/lib/Twig/Profiler/Node/EnterProfile.php CHANGED
@@ -27,12 +27,12 @@ class Twig_Profiler_Node_EnterProfile extends Twig_Node
27
  public function compile(Twig_Compiler $compiler)
28
  {
29
  $compiler
30
- ->write(sprintf("\$%s = \$this->env->getExtension(", $this->getAttribute('var_name')))
31
  ->repr($this->getAttribute('extension_name'))
32
  ->raw(");\n")
33
- ->write(sprintf("\$%s->enter(\$%s = new Twig_Profiler_Profile(\$this->getTemplateName(), ", $this->getAttribute('var_name'), $this->getAttribute('var_name').'_prof'))
34
  ->repr($this->getAttribute('type'))
35
- ->raw(", ")
36
  ->repr($this->getAttribute('name'))
37
  ->raw("));\n\n")
38
  ;
27
  public function compile(Twig_Compiler $compiler)
28
  {
29
  $compiler
30
+ ->write(sprintf('$%s = $this->env->getExtension(', $this->getAttribute('var_name')))
31
  ->repr($this->getAttribute('extension_name'))
32
  ->raw(");\n")
33
+ ->write(sprintf('$%s->enter($%s = new Twig_Profiler_Profile($this->getTemplateName(), ', $this->getAttribute('var_name'), $this->getAttribute('var_name').'_prof'))
34
  ->repr($this->getAttribute('type'))
35
+ ->raw(', ')
36
  ->repr($this->getAttribute('name'))
37
  ->raw("));\n\n")
38
  ;
vendor/twig/twig/lib/Twig/Profiler/NodeVisitor/Profiler.php CHANGED
@@ -12,7 +12,7 @@
12
  /**
13
  * @author Fabien Potencier <fabien@symfony.com>
14
  */
15
- class Twig_Profiler_NodeVisitor_Profiler implements Twig_NodeVisitorInterface
16
  {
17
  private $extensionName;
18
 
@@ -24,7 +24,7 @@ class Twig_Profiler_NodeVisitor_Profiler implements Twig_NodeVisitorInterface
24
  /**
25
  * {@inheritdoc}
26
  */
27
- public function enterNode(Twig_NodeInterface $node, Twig_Environment $env)
28
  {
29
  return $node;
30
  }
@@ -32,7 +32,7 @@ class Twig_Profiler_NodeVisitor_Profiler implements Twig_NodeVisitorInterface
32
  /**
33
  * {@inheritdoc}
34
  */
35
- public function leaveNode(Twig_NodeInterface $node, Twig_Environment $env)
36
  {
37
  if ($node instanceof Twig_Node_Module) {
38
  $varName = $this->getVarName();
12
  /**
13
  * @author Fabien Potencier <fabien@symfony.com>
14
  */
15
+ class Twig_Profiler_NodeVisitor_Profiler extends Twig_BaseNodeVisitor
16
  {
17
  private $extensionName;
18
 
24
  /**
25
  * {@inheritdoc}
26
  */
27
+ protected function doEnterNode(Twig_Node $node, Twig_Environment $env)
28
  {
29
  return $node;
30
  }
32
  /**
33
  * {@inheritdoc}
34
  */
35
+ protected function doLeaveNode(Twig_Node $node, Twig_Environment $env)
36
  {
37
  if ($node instanceof Twig_Node_Module) {
38
  $varName = $this->getVarName();
vendor/twig/twig/lib/Twig/Profiler/Profile.php CHANGED
@@ -26,7 +26,7 @@ class Twig_Profiler_Profile implements IteratorAggregate, Serializable
26
  private $ends = array();
27
  private $profiles = array();
28
 
29
- public function __construct($template = 'main', $type = Twig_Profiler_Profile::ROOT, $name = 'main')
30
  {
31
  $this->template = $template;
32
  $this->type = $type;
26
  private $ends = array();
27
  private $profiles = array();
28
 
29
+ public function __construct($template = 'main', $type = self::ROOT, $name = 'main')
30
  {
31
  $this->template = $template;
32
  $this->type = $type;
vendor/twig/twig/lib/Twig/SimpleFilter.php CHANGED
@@ -27,12 +27,15 @@ class Twig_SimpleFilter
27
  $this->callable = $callable;
28
  $this->options = array_merge(array(
29
  'needs_environment' => false,
30
- 'needs_context' => false,
31
- 'is_safe' => null,
32
- 'is_safe_callback' => null,
33
- 'pre_escape' => null,
34
- 'preserves_safety' => null,
35
- 'node_class' => 'Twig_Node_Expression_Filter',
 
 
 
36
  ), $options);
37
  }
38
 
@@ -91,4 +94,19 @@ class Twig_SimpleFilter
91
  {
92
  return $this->options['pre_escape'];
93
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
94
  }
27
  $this->callable = $callable;
28
  $this->options = array_merge(array(
29
  'needs_environment' => false,
30
+ 'needs_context' => false,
31
+ 'is_variadic' => false,
32
+ 'is_safe' => null,
33
+ 'is_safe_callback' => null,
34
+ 'pre_escape' => null,
35
+ 'preserves_safety' => null,
36
+ 'node_class' => 'Twig_Node_Expression_Filter',
37
+ 'deprecated' => false,
38
+ 'alternative' => null,
39
  ), $options);
40
  }
41
 
94
  {
95
  return $this->options['pre_escape'];
96
  }
97
+
98
+ public function isVariadic()
99
+ {
100
+ return $this->options['is_variadic'];
101
+ }
102
+
103
+ public function isDeprecated()
104
+ {
105
+ return $this->options['deprecated'];
106
+ }
107
+
108
+ public function getAlternative()
109
+ {
110
+ return $this->options['alternative'];
111
+ }
112
  }
vendor/twig/twig/lib/Twig/SimpleFunction.php CHANGED
@@ -27,10 +27,13 @@ class Twig_SimpleFunction
27
  $this->callable = $callable;
28
  $this->options = array_merge(array(
29
  'needs_environment' => false,
30
- 'needs_context' => false,
31
- 'is_safe' => null,
32
- 'is_safe_callback' => null,
33
- 'node_class' => 'Twig_Node_Expression_Function',
 
 
 
34
  ), $options);
35
  }
36
 
@@ -81,4 +84,19 @@ class Twig_SimpleFunction
81
 
82
  return array();
83
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  }
27
  $this->callable = $callable;
28
  $this->options = array_merge(array(
29
  'needs_environment' => false,
30
+ 'needs_context' => false,
31
+ 'is_variadic' => false,
32
+ 'is_safe' => null,
33
+ 'is_safe_callback' => null,
34
+ 'node_class' => 'Twig_Node_Expression_Function',
35
+ 'deprecated' => false,
36
+ 'alternative' => null,
37
  ), $options);
38
  }
39
 
84
 
85
  return array();
86
  }
87
+
88
+ public function isVariadic()
89
+ {
90
+ return $this->options['is_variadic'];
91
+ }
92
+
93
+ public function isDeprecated()
94
+ {
95
+ return $this->options['deprecated'];
96
+ }
97
+
98
+ public function getAlternative()
99
+ {
100
+ return $this->options['alternative'];
101
+ }
102
  }
vendor/twig/twig/lib/Twig/SimpleTest.php CHANGED
@@ -25,7 +25,10 @@ class Twig_SimpleTest
25
  $this->name = $name;
26
  $this->callable = $callable;
27
  $this->options = array_merge(array(
 
28
  'node_class' => 'Twig_Node_Expression_Test',
 
 
29
  ), $options);
30
  }
31
 
@@ -43,4 +46,19 @@ class Twig_SimpleTest
43
  {
44
  return $this->options['node_class'];
45
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  }
25
  $this->name = $name;
26
  $this->callable = $callable;
27
  $this->options = array_merge(array(
28
+ 'is_variadic' => false,
29
  'node_class' => 'Twig_Node_Expression_Test',
30
+ 'deprecated' => false,
31
+ 'alternative' => null,
32
  ), $options);
33
  }
34
 
46
  {
47
  return $this->options['node_class'];
48
  }
49
+
50
+ public function isVariadic()
51
+ {
52
+ return $this->options['is_variadic'];
53
+ }
54
+
55
+ public function isDeprecated()
56
+ {
57
+ return $this->options['deprecated'];
58
+ }
59
+
60
+ public function getAlternative()
61
+ {
62
+ return $this->options['alternative'];
63
+ }
64
  }
vendor/twig/twig/lib/Twig/Template.php CHANGED
@@ -22,8 +22,8 @@ abstract class Twig_Template implements Twig_TemplateInterface
22
  protected $parent;
23
  protected $parents = array();
24
  protected $env;
25
- protected $blocks;
26
- protected $traits;
27
 
28
  /**
29
  * Constructor.
@@ -33,8 +33,6 @@ abstract class Twig_Template implements Twig_TemplateInterface
33
  public function __construct(Twig_Environment $env)
34
  {
35
  $this->env = $env;
36
- $this->blocks = array();
37
- $this->traits = array();
38
  }
39
 
40
  /**
@@ -45,10 +43,12 @@ abstract class Twig_Template implements Twig_TemplateInterface
45
  abstract public function getTemplateName();
46
 
47
  /**
48
- * {@inheritdoc}
49
  */
50
  public function getEnvironment()
51
  {
 
 
52
  return $this->env;
53
  }
54
 
@@ -58,6 +58,8 @@ abstract class Twig_Template implements Twig_TemplateInterface
58
  * This method is for internal use only and should never be called
59
  * directly.
60
  *
 
 
61
  * @return Twig_TemplateInterface|false The parent template or false if there is no parent
62
  */
63
  public function getParent(array $context)
@@ -73,7 +75,7 @@ abstract class Twig_Template implements Twig_TemplateInterface
73
  return false;
74
  }
75
 
76
- if ($parent instanceof Twig_Template) {
77
  return $this->parents[$parent->getTemplateName()] = $parent;
78
  }
79
 
@@ -150,9 +152,25 @@ abstract class Twig_Template implements Twig_TemplateInterface
150
  }
151
 
152
  if (null !== $template) {
 
 
 
 
 
153
  try {
154
  $template->$block($context, $blocks);
155
  } catch (Twig_Error $e) {
 
 
 
 
 
 
 
 
 
 
 
156
  throw $e;
157
  } catch (Exception $e) {
158
  throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getTemplateName(), $e);
@@ -247,13 +265,20 @@ abstract class Twig_Template implements Twig_TemplateInterface
247
  return $this->env->resolveTemplate($template);
248
  }
249
 
250
- if ($template instanceof Twig_Template) {
251
  return $template;
252
  }
253
 
254
  return $this->env->loadTemplate($template, $index);
255
  } catch (Twig_Error $e) {
256
- $e->setTemplateFile($templateName ? $templateName : $this->getTemplateName());
 
 
 
 
 
 
 
257
  if (!$line) {
258
  $e->guess();
259
  } else {
@@ -352,7 +377,7 @@ abstract class Twig_Template implements Twig_TemplateInterface
352
  * @param string $item The variable to return from the context
353
  * @param bool $ignoreStrictCheck Whether to ignore the strict variable check or not
354
  *
355
- * @return The content of the context variable
356
  *
357
  * @throws Twig_Error_Runtime if the variable does not exist and Twig is running in strict mode
358
  */
@@ -383,10 +408,10 @@ abstract class Twig_Template implements Twig_TemplateInterface
383
  *
384
  * @throws Twig_Error_Runtime if the attribute does not exist and Twig is running in strict mode and $isDefinedTest is false
385
  */
386
- protected function getAttribute($object, $item, array $arguments = array(), $type = Twig_Template::ANY_CALL, $isDefinedTest = false, $ignoreStrictCheck = false)
387
  {
388
  // array
389
- if (Twig_Template::METHOD_CALL !== $type) {
390
  $arrayItem = is_bool($item) || is_float($item) ? (int) $item : $item;
391
 
392
  if ((is_array($object) && array_key_exists($arrayItem, $object))
@@ -399,7 +424,7 @@ abstract class Twig_Template implements Twig_TemplateInterface
399
  return $object[$arrayItem];
400
  }
401
 
402
- if (Twig_Template::ARRAY_CALL === $type || !is_object($object)) {
403
  if ($isDefinedTest) {
404
  return false;
405
  }
@@ -418,8 +443,14 @@ abstract class Twig_Template implements Twig_TemplateInterface
418
  } else {
419
  $message = sprintf('Key "%s" for array with keys "%s" does not exist', $arrayItem, implode(', ', array_keys($object)));
420
  }
421
- } elseif (Twig_Template::ARRAY_CALL === $type) {
422
- $message = sprintf('Impossible to access a key ("%s") on a %s variable ("%s")', $item, gettype($object), $object);
 
 
 
 
 
 
423
  } else {
424
  $message = sprintf('Impossible to access an attribute ("%s") on a %s variable ("%s")', $item, gettype($object), $object);
425
  }
@@ -437,11 +468,17 @@ abstract class Twig_Template implements Twig_TemplateInterface
437
  return;
438
  }
439
 
440
- throw new Twig_Error_Runtime(sprintf('Impossible to invoke a method ("%s") on a %s variable ("%s")', $item, gettype($object), $object), -1, $this->getTemplateName());
 
 
 
 
 
 
441
  }
442
 
443
  // object property
444
- if (Twig_Template::METHOD_CALL !== $type) {
445
  if (isset($object->$item) || array_key_exists((string) $item, $object)) {
446
  if ($isDefinedTest) {
447
  return true;
@@ -459,7 +496,24 @@ abstract class Twig_Template implements Twig_TemplateInterface
459
 
460
  // object method
461
  if (!isset(self::$cache[$class]['methods'])) {
462
- self::$cache[$class]['methods'] = array_change_key_case(array_flip(get_class_methods($object)));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
463
  }
464
 
465
  $call = false;
22
  protected $parent;
23
  protected $parents = array();
24
  protected $env;
25
+ protected $blocks = array();
26
+ protected $traits = array();
27
 
28
  /**
29
  * Constructor.
33
  public function __construct(Twig_Environment $env)
34
  {
35
  $this->env = $env;
 
 
36
  }
37
 
38
  /**
43
  abstract public function getTemplateName();
44
 
45
  /**
46
+ * @deprecated since 1.20 (to be removed in 2.0)
47
  */
48
  public function getEnvironment()
49
  {
50
+ @trigger_error('The '.__METHOD__.' method is deprecated since version 1.20 and will be removed in 2.0.', E_USER_DEPRECATED);
51
+
52
  return $this->env;
53
  }
54
 
58
  * This method is for internal use only and should never be called
59
  * directly.
60
  *
61
+ * @param array $context
62
+ *
63
  * @return Twig_TemplateInterface|false The parent template or false if there is no parent
64
  */
65
  public function getParent(array $context)
75
  return false;
76
  }
77
 
78
+ if ($parent instanceof self) {
79
  return $this->parents[$parent->getTemplateName()] = $parent;
80
  }
81
 
152
  }
153
 
154
  if (null !== $template) {
155
+ // avoid RCEs when sandbox is enabled
156
+ if (!$template instanceof self) {
157
+ throw new LogicException('A block must be a method on a Twig_Template instance.');
158
+ }
159
+
160
  try {
161
  $template->$block($context, $blocks);
162
  } catch (Twig_Error $e) {
163
+ if (!$e->getTemplateFile()) {
164
+ $e->setTemplateFile($template->getTemplateName());
165
+ }
166
+
167
+ // this is mostly useful for Twig_Error_Loader exceptions
168
+ // see Twig_Error_Loader
169
+ if (false === $e->getTemplateLine()) {
170
+ $e->setTemplateLine(-1);
171
+ $e->guess();
172
+ }
173
+
174
  throw $e;
175
  } catch (Exception $e) {
176
  throw new Twig_Error_Runtime(sprintf('An exception has been thrown during the rendering of a template ("%s").', $e->getMessage()), -1, $template->getTemplateName(), $e);
265
  return $this->env->resolveTemplate($template);
266
  }
267
 
268
+ if ($template instanceof self) {
269
  return $template;
270
  }
271
 
272
  return $this->env->loadTemplate($template, $index);
273
  } catch (Twig_Error $e) {
274
+ if (!$e->getTemplateFile()) {
275
+ $e->setTemplateFile($templateName ? $templateName : $this->getTemplateName());
276
+ }
277
+
278
+ if ($e->getTemplateLine()) {
279
+ throw $e;
280
+ }
281
+
282
  if (!$line) {
283
  $e->guess();
284
  } else {
377
  * @param string $item The variable to return from the context
378
  * @param bool $ignoreStrictCheck Whether to ignore the strict variable check or not
379
  *
380
+ * @return mixed The content of the context variable
381
  *
382
  * @throws Twig_Error_Runtime if the variable does not exist and Twig is running in strict mode
383
  */
408
  *
409
  * @throws Twig_Error_Runtime if the attribute does not exist and Twig is running in strict mode and $isDefinedTest is false
410
  */
411
+ protected function getAttribute($object, $item, array $arguments = array(), $type = self::ANY_CALL, $isDefinedTest = false, $ignoreStrictCheck = false)
412
  {
413
  // array
414
+ if (self::METHOD_CALL !== $type) {
415
  $arrayItem = is_bool($item) || is_float($item) ? (int) $item : $item;
416
 
417
  if ((is_array($object) && array_key_exists($arrayItem, $object))
424
  return $object[$arrayItem];
425
  }
426
 
427
+ if (self::ARRAY_CALL === $type || !is_object($object)) {
428
  if ($isDefinedTest) {
429
  return false;
430
  }
443
  } else {
444
  $message = sprintf('Key "%s" for array with keys "%s" does not exist', $arrayItem, implode(', ', array_keys($object)));
445
  }
446
+ } elseif (self::ARRAY_CALL === $type) {
447
+ if (null === $object) {
448
+ $message = sprintf('Impossible to access a key ("%s") on a null variable', $item);
449
+ } else {
450
+ $message = sprintf('Impossible to access a key ("%s") on a %s variable ("%s")', $item, gettype($object), $object);
451
+ }
452
+ } elseif (null === $object) {
453
+ $message = sprintf('Impossible to access an attribute ("%s") on a null variable', $item);
454
  } else {
455
  $message = sprintf('Impossible to access an attribute ("%s") on a %s variable ("%s")', $item, gettype($object), $object);
456
  }
468
  return;
469
  }
470
 
471
+ if (null === $object) {
472
+ $message = sprintf('Impossible to invoke a method ("%s") on a null variable', $item);
473
+ } else {
474
+ $message = sprintf('Impossible to invoke a method ("%s") on a %s variable ("%s")', $item, gettype($object), $object);
475
+ }
476
+
477
+ throw new Twig_Error_Runtime($message, -1, $this->getTemplateName());
478
  }
479
 
480
  // object property
481
+ if (self::METHOD_CALL !== $type && !$object instanceof self) { // Twig_Template does not have public properties, and we don't want to allow access to internal ones
482
  if (isset($object->$item) || array_key_exists((string) $item, $object)) {
483
  if ($isDefinedTest) {
484
  return true;
496
 
497
  // object method
498
  if (!isset(self::$cache[$class]['methods'])) {
499
+ // get_class_methods returns all methods accessible in the scope, but we only want public ones to be accessible in templates
500
+ if ($object instanceof self) {
501
+ $ref = new ReflectionClass($class);
502
+ $methods = array();
503
+
504
+ foreach ($ref->getMethods(ReflectionMethod::IS_PUBLIC) as $refMethod) {
505
+ $methodName = strtolower($refMethod->name);
506
+
507
+ // Accessing the environment from templates is forbidden to prevent untrusted changes to the environment
508
+ if ('getenvironment' !== $methodName) {
509
+ $methods[$methodName] = true;
510
+ }
511
+ }
512
+
513
+ self::$cache[$class]['methods'] = $methods;
514
+ } else {
515
+ self::$cache[$class]['methods'] = array_change_key_case(array_flip(get_class_methods($object)));
516
+ }
517
  }
518
 
519
  $call = false;
vendor/twig/twig/lib/Twig/TemplateInterface.php CHANGED
@@ -18,8 +18,8 @@
18
  */
19
  interface Twig_TemplateInterface
20
  {
21
- const ANY_CALL = 'any';
22
- const ARRAY_CALL = 'array';
23
  const METHOD_CALL = 'method';
24
 
25
  /**
18
  */
19
  interface Twig_TemplateInterface
20
  {
21
+ const ANY_CALL = 'any';
22
+ const ARRAY_CALL = 'array';
23
  const METHOD_CALL = 'method';
24
 
25
  /**
vendor/twig/twig/lib/Twig/Test.php CHANGED
@@ -9,10 +9,13 @@
9
  * file that was distributed with this source code.
10
  */
11
 
 
 
12
  /**
13
  * Represents a template test.
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
 
16
  * @deprecated since 1.12 (to be removed in 2.0)
17
  */
18
  abstract class Twig_Test implements Twig_TestInterface, Twig_TestCallableInterface
9
  * file that was distributed with this source code.
10
  */
11
 
12
+ @trigger_error('The Twig_Test class is deprecated since version 1.12 and will be removed in 2.0. Use Twig_SimpleTest instead.', E_USER_DEPRECATED);
13
+
14
  /**
15
  * Represents a template test.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
18
+ *
19
  * @deprecated since 1.12 (to be removed in 2.0)
20
  */
21
  abstract class Twig_Test implements Twig_TestInterface, Twig_TestCallableInterface
vendor/twig/twig/lib/Twig/Test/Function.php CHANGED
@@ -9,10 +9,13 @@
9
  * file that was distributed with this source code.
10
  */
11
 
 
 
12
  /**
13
  * Represents a function template test.
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
 
16
  * @deprecated since 1.12 (to be removed in 2.0)
17
  */
18
  class Twig_Test_Function extends Twig_Test
9
  * file that was distributed with this source code.
10
  */
11
 
12
+ @trigger_error('The Twig_Test_Function class is deprecated since version 1.12 and will be removed in 2.0. Use Twig_SimpleTest instead.', E_USER_DEPRECATED);
13
+
14
  /**
15
  * Represents a function template test.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
18
+ *
19
  * @deprecated since 1.12 (to be removed in 2.0)
20
  */
21
  class Twig_Test_Function extends Twig_Test
vendor/twig/twig/lib/Twig/Test/IntegrationTestCase.php CHANGED
@@ -10,7 +10,7 @@
10
  */
11
 
12
  /**
13
- * Integration test helper
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
16
  * @author Karma Dordrak <drak@zikula.org>
@@ -28,7 +28,16 @@ abstract class Twig_Test_IntegrationTestCase extends PHPUnit_Framework_TestCase
28
  $this->doIntegrationTest($file, $message, $condition, $templates, $exception, $outputs);
29
  }
30
 
31
- public function getTests()
 
 
 
 
 
 
 
 
 
32
  {
33
  $fixturesDir = realpath($this->getFixturesDir());
34
  $tests = array();
@@ -38,10 +47,13 @@ abstract class Twig_Test_IntegrationTestCase extends PHPUnit_Framework_TestCase
38
  continue;
39
  }
40
 
 
 
 
 
41
  $test = file_get_contents($file->getRealpath());
42
 
43
- if (preg_match('/
44
- --TEST--\s*(.*?)\s*(?:--CONDITION--\s*(.*))?\s*((?:--TEMPLATE(?:\(.*?\))?--(?:.*?))+)\s*(?:--DATA--\s*(.*))?\s*--EXCEPTION--\s*(.*)/sx', $test, $match)) {
45
  $message = $match[1];
46
  $condition = $match[2];
47
  $templates = $this->parseTemplates($match[3]);
@@ -60,9 +72,19 @@ abstract class Twig_Test_IntegrationTestCase extends PHPUnit_Framework_TestCase
60
  $tests[] = array(str_replace($fixturesDir.'/', '', $file), $message, $condition, $templates, $exception, $outputs);
61
  }
62
 
 
 
 
 
 
63
  return $tests;
64
  }
65
 
 
 
 
 
 
66
  protected function doIntegrationTest($file, $message, $condition, $templates, $exception, $outputs)
67
  {
68
  if ($condition) {
@@ -74,7 +96,7 @@ abstract class Twig_Test_IntegrationTestCase extends PHPUnit_Framework_TestCase
74
 
75
  $loader = new Twig_Loader_Array($templates);
76
 
77
- foreach ($outputs as $match) {
78
  $config = array_merge(array(
79
  'cache' => false,
80
  'strict_variables' => true,
@@ -85,6 +107,14 @@ abstract class Twig_Test_IntegrationTestCase extends PHPUnit_Framework_TestCase
85
  $twig->addExtension($extension);
86
  }
87
 
 
 
 
 
 
 
 
 
88
  try {
89
  $template = $twig->loadTemplate('index.twig');
90
  } catch (Exception $e) {
@@ -122,14 +152,14 @@ abstract class Twig_Test_IntegrationTestCase extends PHPUnit_Framework_TestCase
122
  }
123
 
124
  if (false !== $exception) {
125
- list($class, ) = explode(':', $exception);
126
  $this->assertThat(null, new PHPUnit_Framework_Constraint_Exception($class));
127
  }
128
 
129
  $expected = trim($match[3], "\n ");
130
 
131
  if ($expected != $output) {
132
- echo 'Compiled template that failed:';
133
 
134
  foreach (array_keys($templates) as $name) {
135
  echo "Template: $name\n";
10
  */
11
 
12
  /**
13
+ * Integration test helper.
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
16
  * @author Karma Dordrak <drak@zikula.org>
28
  $this->doIntegrationTest($file, $message, $condition, $templates, $exception, $outputs);
29
  }
30
 
31
+ /**
32
+ * @dataProvider getLegacyTests
33
+ * @group legacy
34
+ */
35
+ public function testLegacyIntegration($file, $message, $condition, $templates, $exception, $outputs)
36
+ {
37
+ $this->testIntegration($file, $message, $condition, $templates, $exception, $outputs);
38
+ }
39
+
40
+ public function getTests($name, $legacyTests = false)
41
  {
42
  $fixturesDir = realpath($this->getFixturesDir());
43
  $tests = array();
47
  continue;
48
  }
49
 
50
+ if ($legacyTests xor false !== strpos($file->getRealpath(), '.legacy.test')) {
51
+ continue;
52
+ }
53
+
54
  $test = file_get_contents($file->getRealpath());
55
 
56
+ if (preg_match('/--TEST--\s*(.*?)\s*(?:--CONDITION--\s*(.*))?\s*((?:--TEMPLATE(?:\(.*?\))?--(?:.*?))+)\s*(?:--DATA--\s*(.*))?\s*--EXCEPTION--\s*(.*)/sx', $test, $match)) {
 
57
  $message = $match[1];
58
  $condition = $match[2];
59
  $templates = $this->parseTemplates($match[3]);
72
  $tests[] = array(str_replace($fixturesDir.'/', '', $file), $message, $condition, $templates, $exception, $outputs);
73
  }
74
 
75
+ if (!$tests) {
76
+ // add a dummy test to avoid a PHPUnit message
77
+ return array(array('not', '-', '', array(), '', array()));
78
+ }
79
+
80
  return $tests;
81
  }
82
 
83
+ public function getLegacyTests()
84
+ {
85
+ return $this->getTests('testLegacyIntegration', true);
86
+ }
87
+
88
  protected function doIntegrationTest($file, $message, $condition, $templates, $exception, $outputs)
89
  {
90
  if ($condition) {
96
 
97
  $loader = new Twig_Loader_Array($templates);
98
 
99
+ foreach ($outputs as $i => $match) {
100
  $config = array_merge(array(
101
  'cache' => false,
102
  'strict_variables' => true,
107
  $twig->addExtension($extension);
108
  }
109
 
110
+ // avoid using the same PHP class name for different cases
111
+ // only for PHP 5.2+
112
+ if (PHP_VERSION_ID >= 50300) {
113
+ $p = new ReflectionProperty($twig, 'templateClassPrefix');
114
+ $p->setAccessible(true);
115
+ $p->setValue($twig, '__TwigTemplate_'.hash('sha256', uniqid(mt_rand(), true), false).'_');
116
+ }
117
+
118
  try {
119
  $template = $twig->loadTemplate('index.twig');
120
  } catch (Exception $e) {
152
  }
153
 
154
  if (false !== $exception) {
155
+ list($class) = explode(':', $exception);
156
  $this->assertThat(null, new PHPUnit_Framework_Constraint_Exception($class));
157
  }
158
 
159
  $expected = trim($match[3], "\n ");
160
 
161
  if ($expected != $output) {
162
+ printf("Compiled templates that failed on case %d:\n", $i + 1);
163
 
164
  foreach (array_keys($templates) as $name) {
165
  echo "Template: $name\n";
vendor/twig/twig/lib/Twig/Test/Method.php CHANGED
@@ -9,10 +9,13 @@
9
  * file that was distributed with this source code.
10
  */
11
 
 
 
12
  /**
13
  * Represents a method template test.
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
 
16
  * @deprecated since 1.12 (to be removed in 2.0)
17
  */
18
  class Twig_Test_Method extends Twig_Test
9
  * file that was distributed with this source code.
10
  */
11
 
12
+ @trigger_error('The Twig_Test_Method class is deprecated since version 1.12 and will be removed in 2.0. Use Twig_SimpleTest instead.', E_USER_DEPRECATED);
13
+
14
  /**
15
  * Represents a method template test.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
18
+ *
19
  * @deprecated since 1.12 (to be removed in 2.0)
20
  */
21
  class Twig_Test_Method extends Twig_Test
vendor/twig/twig/lib/Twig/Test/Node.php CHANGED
@@ -9,10 +9,13 @@
9
  * file that was distributed with this source code.
10
  */
11
 
 
 
12
  /**
13
  * Represents a template test as a Node.
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
 
16
  * @deprecated since 1.12 (to be removed in 2.0)
17
  */
18
  class Twig_Test_Node extends Twig_Test
9
  * file that was distributed with this source code.
10
  */
11
 
12
+ @trigger_error('The Twig_Test_Node class is deprecated since version 1.12 and will be removed in 2.0.', E_USER_DEPRECATED);
13
+
14
  /**
15
  * Represents a template test as a Node.
16
  *
17
  * @author Fabien Potencier <fabien@symfony.com>
18
+ *
19
  * @deprecated since 1.12 (to be removed in 2.0)
20
  */
21
  class Twig_Test_Node extends Twig_Test
vendor/twig/twig/lib/Twig/Test/NodeTestCase.php CHANGED
@@ -35,7 +35,7 @@ abstract class Twig_Test_NodeTestCase extends PHPUnit_Framework_TestCase
35
 
36
  protected function getEnvironment()
37
  {
38
- return new Twig_Environment();
39
  }
40
 
41
  protected function getVariableGetter($name, $line = false)
35
 
36
  protected function getEnvironment()
37
  {
38
+ return new Twig_Environment(new Twig_Loader_Array(array()));
39
  }
40
 
41
  protected function getVariableGetter($name, $line = false)
vendor/twig/twig/lib/Twig/TestCallableInterface.php CHANGED
@@ -13,6 +13,7 @@
13
  * Represents a callable template test.
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
 
16
  * @deprecated since 1.12 (to be removed in 2.0)
17
  */
18
  interface Twig_TestCallableInterface
13
  * Represents a callable template test.
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
16
+ *
17
  * @deprecated since 1.12 (to be removed in 2.0)
18
  */
19
  interface Twig_TestCallableInterface
vendor/twig/twig/lib/Twig/TestInterface.php CHANGED
@@ -13,6 +13,7 @@
13
  * Represents a template test.
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
 
16
  * @deprecated since 1.12 (to be removed in 2.0)
17
  */
18
  interface Twig_TestInterface
13
  * Represents a template test.
14
  *
15
  * @author Fabien Potencier <fabien@symfony.com>
16
+ *
17
  * @deprecated since 1.12 (to be removed in 2.0)
18
  */
19
  interface Twig_TestInterface
vendor/twig/twig/lib/Twig/Token.php CHANGED
@@ -21,19 +21,19 @@ class Twig_Token
21
  protected $type;
22
  protected $lineno;
23
 
24
- const EOF_TYPE = -1;
25
- const TEXT_TYPE = 0;
26
- const BLOCK_START_TYPE = 1;
27
- const VAR_START_TYPE = 2;
28
- const BLOCK_END_TYPE = 3;
29
- const VAR_END_TYPE = 4;
30
- const NAME_TYPE = 5;
31
- const NUMBER_TYPE = 6;
32
- const STRING_TYPE = 7;
33
- const OPERATOR_TYPE = 8;
34
- const PUNCTUATION_TYPE = 9;
35
- const INTERPOLATION_START_TYPE = 10;
36
- const INTERPOLATION_END_TYPE = 11;
37
 
38
  /**
39
  * Constructor.
@@ -44,8 +44,8 @@ class Twig_Token
44
  */
45
  public function __construct($type, $value, $lineno)
46
  {
47
- $this->type = $type;
48
- $this->value = $value;
49
  $this->lineno = $lineno;
50
  }
51
 
21
  protected $type;
22
  protected $lineno;
23
 
24
+ const EOF_TYPE = -1;
25
+ const TEXT_TYPE = 0;
26
+ const BLOCK_START_TYPE = 1;
27
+ const VAR_START_TYPE = 2;
28
+ const BLOCK_END_TYPE = 3;
29
+ const VAR_END_TYPE = 4;
30
+ const NAME_TYPE = 5;
31
+ const NUMBER_TYPE = 6;
32
+ const STRING_TYPE = 7;
33
+ const OPERATOR_TYPE = 8;
34
+ const PUNCTUATION_TYPE = 9;
35
+ const INTERPOLATION_START_TYPE = 10;
36
+ const INTERPOLATION_END_TYPE = 11;
37
 
38
  /**
39
  * Constructor.
44
  */
45
  public function __construct($type, $value, $lineno)
46
  {
47
+ $this->type = $type;
48
+ $this->value = $value;
49
  $this->lineno = $lineno;
50
  }
51
 
vendor/twig/twig/lib/Twig/TokenParser.php CHANGED
@@ -22,9 +22,9 @@ abstract class Twig_TokenParser implements Twig_TokenParserInterface
22
  protected $parser;
23
 
24
  /**
25
- * Sets the parser associated with this token parser
26
  *
27
- * @param $parser A Twig_Parser instance
28
  */
29
  public function setParser(Twig_Parser $parser)
30
  {
22
  protected $parser;
23
 
24
  /**
25
+ * Sets the parser associated with this token parser.
26
  *
27
+ * @param Twig_Parser $parser A Twig_Parser instance
28
  */
29
  public function setParser(Twig_Parser $parser)
30
  {
vendor/twig/twig/lib/Twig/TokenParser/AutoEscape.php CHANGED
@@ -57,6 +57,8 @@ class Twig_TokenParser_AutoEscape extends Twig_TokenParser
57
  }
58
 
59
  if ($compat && $stream->test(Twig_Token::NAME_TYPE)) {
 
 
60
  if (false === $value) {
61
  throw new Twig_Error_Syntax('Unexpected escaping strategy as you set autoescaping to false.', $stream->getCurrent()->getLine(), $stream->getFilename());
62
  }
57
  }
58
 
59
  if ($compat && $stream->test(Twig_Token::NAME_TYPE)) {
60
+ @trigger_error('Using the autoescape tag with "true" or "false" before the strategy name is deprecated.', E_USER_DEPRECATED);
61
+
62
  if (false === $value) {
63
  throw new Twig_Error_Syntax('Unexpected escaping strategy as you set autoescaping to false.', $stream->getCurrent()->getLine(), $stream->getFilename());
64
  }
vendor/twig/twig/lib/Twig/TokenParser/Block.php CHANGED
@@ -47,7 +47,7 @@ class Twig_TokenParser_Block extends Twig_TokenParser
47
  $value = $token->getValue();
48
 
49
  if ($value != $name) {
50
- throw new Twig_Error_Syntax(sprintf("Expected endblock for block '$name' (but %s given)", $value), $stream->getCurrent()->getLine(), $stream->getFilename());
51
  }
52
  }
53
  } else {
47
  $value = $token->getValue();
48
 
49
  if ($value != $name) {
50
+ throw new Twig_Error_Syntax(sprintf('Expected endblock for block "%s" (but "%s" given)', $name, $value), $stream->getCurrent()->getLine(), $stream->getFilename());
51
  }
52
  }
53
  } else {
vendor/twig/twig/lib/Twig/TokenParser/From.php CHANGED
@@ -52,6 +52,10 @@ class Twig_TokenParser_From extends Twig_TokenParser
52
  $node = new Twig_Node_Import($macro, new Twig_Node_Expression_AssignName($this->parser->getVarName(), $token->getLine()), $token->getLine(), $this->getTag());
53
 
54
  foreach ($targets as $name => $alias) {
 
 
 
 
55
  $this->parser->addImportedSymbol('function', $alias, 'get'.$name, $node->getNode('var'));
56
  }
57
 
52
  $node = new Twig_Node_Import($macro, new Twig_Node_Expression_AssignName($this->parser->getVarName(), $token->getLine()), $token->getLine(), $this->getTag());
53
 
54
  foreach ($targets as $name => $alias) {
55
+ if ($this->parser->isReservedMacroName($name)) {
56
+ throw new Twig_Error_Syntax(sprintf('"%s" cannot be an imported macro as it is a reserved keyword', $name), $token->getLine(), $stream->getFilename());
57
+ }
58
+
59
  $this->parser->addImportedSymbol('function', $alias, 'get'.$name, $node->getNode('var'));
60
  }
61
 
vendor/twig/twig/lib/Twig/TokenParser/Macro.php CHANGED
@@ -42,7 +42,7 @@ class Twig_TokenParser_Macro extends Twig_TokenParser
42
  $value = $token->getValue();
43
 
44
  if ($value != $name) {
45
- throw new Twig_Error_Syntax(sprintf("Expected endmacro for macro '$name' (but %s given)", $value), $stream->getCurrent()->getLine(), $stream->getFilename());
46
  }
47
  }
48
  $this->parser->popLocalScope();
42
  $value = $token->getValue();
43
 
44
  if ($value != $name) {
45
+ throw new Twig_Error_Syntax(sprintf('Expected endmacro for macro "%s" (but "%s" given)', $name, $value), $stream->getCurrent()->getLine(), $stream->getFilename());
46
  }
47
  }
48
  $this->parser->popLocalScope();
vendor/twig/twig/lib/Twig/TokenParser/Set.php CHANGED
@@ -48,13 +48,13 @@ class Twig_TokenParser_Set extends Twig_TokenParser
48
  $stream->expect(Twig_Token::BLOCK_END_TYPE);
49
 
50
  if (count($names) !== count($values)) {
51
- throw new Twig_Error_Syntax("When using set, you must have the same number of variables and assignments.", $stream->getCurrent()->getLine(), $stream->getFilename());
52
  }
53
  } else {
54
  $capture = true;
55
 
56
  if (count($names) > 1) {
57
- throw new Twig_Error_Syntax("When using set with a block, you cannot have a multi-target.", $stream->getCurrent()->getLine(), $stream->getFilename());
58
  }
59
 
60
  $stream->expect(Twig_Token::BLOCK_END_TYPE);
48
  $stream->expect(Twig_Token::BLOCK_END_TYPE);
49
 
50
  if (count($names) !== count($values)) {
51
+ throw new Twig_Error_Syntax('When using set, you must have the same number of variables and assignments.', $stream->getCurrent()->getLine(), $stream->getFilename());
52
  }
53
  } else {
54
  $capture = true;
55
 
56
  if (count($names) > 1) {
57
+ throw new Twig_Error_Syntax('When using set with a block, you cannot have a multi-target.', $stream->getCurrent()->getLine(), $stream->getFilename());
58
  }
59
 
60
  $stream->expect(Twig_Token::BLOCK_END_TYPE);
vendor/twig/twig/lib/Twig/TokenParserBroker.php CHANGED
@@ -14,6 +14,7 @@
14
  * Default implementation of a token parser broker.
15
  *
16
  * @author Arnaud Le Blanc <arnaud.lb@gmail.com>
 
17
  * @deprecated since 1.12 (to be removed in 2.0)
18
  */
19
  class Twig_TokenParserBroker implements Twig_TokenParserBrokerInterface
@@ -28,8 +29,12 @@ class Twig_TokenParserBroker implements Twig_TokenParserBrokerInterface
28
  * @param array|Traversable $parsers A Traversable of Twig_TokenParserInterface instances
29
  * @param array|Traversable $brokers A Traversable of Twig_TokenParserBrokerInterface instances
30
  */
31
- public function __construct($parsers = array(), $brokers = array())
32
  {
 
 
 
 
33
  foreach ($parsers as $parser) {
34
  if (!$parser instanceof Twig_TokenParserInterface) {
35
  throw new LogicException('$parsers must a an array of Twig_TokenParserInterface');
14
  * Default implementation of a token parser broker.
15
  *
16
  * @author Arnaud Le Blanc <arnaud.lb@gmail.com>
17
+ *
18
  * @deprecated since 1.12 (to be removed in 2.0)
19
  */
20
  class Twig_TokenParserBroker implements Twig_TokenParserBrokerInterface
29
  * @param array|Traversable $parsers A Traversable of Twig_TokenParserInterface instances
30
  * @param array|Traversable $brokers A Traversable of Twig_TokenParserBrokerInterface instances
31
  */
32
+ public function __construct($parsers = array(), $brokers = array(), $triggerDeprecationError = true)
33
  {
34
+ if ($triggerDeprecationError) {
35
+ @trigger_error('The '.__CLASS__.' class is deprecated since version 1.12 and will be removed in 2.0.', E_USER_DEPRECATED);
36
+ }
37
+
38
  foreach ($parsers as $parser) {
39
  if (!$parser instanceof Twig_TokenParserInterface) {
40
  throw new LogicException('$parsers must a an array of Twig_TokenParserInterface');
vendor/twig/twig/lib/Twig/TokenParserBrokerInterface.php CHANGED
@@ -16,6 +16,7 @@
16
  * Token parser brokers allows to implement custom logic in the process of resolving a token parser for a given tag name.
17
  *
18
  * @author Arnaud Le Blanc <arnaud.lb@gmail.com>
 
19
  * @deprecated since 1.12 (to be removed in 2.0)
20
  */
21
  interface Twig_TokenParserBrokerInterface
16
  * Token parser brokers allows to implement custom logic in the process of resolving a token parser for a given tag name.
17
  *
18
  * @author Arnaud Le Blanc <arnaud.lb@gmail.com>
19
+ *
20
  * @deprecated since 1.12 (to be removed in 2.0)
21
  */
22
  interface Twig_TokenParserBrokerInterface
vendor/twig/twig/lib/Twig/TokenParserInterface.php CHANGED
@@ -17,9 +17,9 @@
17
  interface Twig_TokenParserInterface
18
  {
19
  /**
20
- * Sets the parser associated with this token parser
21
  *
22
- * @param $parser A Twig_Parser instance
23
  */
24
  public function setParser(Twig_Parser $parser);
25
 
17
  interface Twig_TokenParserInterface
18
  {
19
  /**
20
+ * Sets the parser associated with this token parser.
21
  *
22
+ * @param Twig_Parser $parser A Twig_Parser instance
23
  */
24
  public function setParser(Twig_Parser $parser);
25
 
vendor/twig/twig/lib/Twig/TokenStream.php CHANGED
@@ -18,7 +18,7 @@
18
  class Twig_TokenStream
19
  {
20
  protected $tokens;
21
- protected $current;
22
  protected $filename;
23
 
24
  /**
@@ -29,9 +29,8 @@ class Twig_TokenStream
29
  */
30
  public function __construct(array $tokens, $filename = null)
31
  {
32
- $this->tokens = $tokens;
33
- $this->current = 0;
34
- $this->filename = $filename;
35
  }
36
 
37
  /**
@@ -115,7 +114,7 @@ class Twig_TokenStream
115
  }
116
 
117
  /**
118
- * Tests the current token
119
  *
120
  * @return bool
121
  */
@@ -125,7 +124,7 @@ class Twig_TokenStream
125
  }
126
 
127
  /**
128
- * Checks if end of stream was reached
129
  *
130
  * @return bool
131
  */
@@ -135,7 +134,7 @@ class Twig_TokenStream
135
  }
136
 
137
  /**
138
- * Gets the current token
139
  *
140
  * @return Twig_Token
141
  */
@@ -145,7 +144,7 @@ class Twig_TokenStream
145
  }
146
 
147
  /**
148
- * Gets the filename associated with this stream
149
  *
150
  * @return string
151
  */
18
  class Twig_TokenStream
19
  {
20
  protected $tokens;
21
+ protected $current = 0;
22
  protected $filename;
23
 
24
  /**
29
  */
30
  public function __construct(array $tokens, $filename = null)
31
  {
32
+ $this->tokens = $tokens;
33
+ $this->filename = $filename;
 
34
  }
35
 
36
  /**
114
  }
115
 
116
  /**
117
+ * Tests the current token.
118
  *
119
  * @return bool
120
  */
124
  }
125
 
126
  /**
127
+ * Checks if end of stream was reached.
128
  *
129
  * @return bool
130
  */
134
  }
135
 
136
  /**
137
+ * Gets the current token.
138
  *
139
  * @return Twig_Token
140
  */
144
  }
145
 
146
  /**
147
+ * Gets the filename associated with this stream.
148
  *
149
  * @return string
150
  */
vendor/twig/twig/lib/Twig/Util/DeprecationCollector.php ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of Twig.
5
+ *
6
+ * (c) Fabien Potencier
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ /**
13
+ * @author Fabien Potencier <fabien@symfony.com>
14
+ */
15
+ class Twig_Util_DeprecationCollector
16
+ {
17
+ private $twig;
18
+ private $deprecations;
19
+
20
+ public function __construct(Twig_Environment $twig)
21
+ {
22
+ $this->twig = $twig;
23
+ }
24
+
25
+ /**
26
+ * Returns deprecations for templates contained in a directory.
27
+ *
28
+ * @param string $dir A directory where templates are stored
29
+ * @param string $ext Limit the loaded templates by extension
30
+ *
31
+ * @return array() An array of deprecations
32
+ */
33
+ public function collectDir($dir, $ext = '.twig')
34
+ {
35
+ $iterator = new RegexIterator(
36
+ new RecursiveIteratorIterator(
37
+ new RecursiveDirectoryIterator($dir), RecursiveIteratorIterator::LEAVES_ONLY
38
+ ), '{'.preg_quote($ext).'$}'
39
+ );
40
+
41
+ return $this->collect(new Twig_Util_TemplateDirIterator($iterator));
42
+ }
43
+
44
+ /**
45
+ * Returns deprecations for passed templates.
46
+ *
47
+ * @param Iterator $iterator An iterator of templates (where keys are template names and values the contents of the template)
48
+ *
49
+ * @return array() An array of deprecations
50
+ */
51
+ public function collect(Iterator $iterator)
52
+ {
53
+ $this->deprecations = array();
54
+
55
+ set_error_handler(array($this, 'errorHandler'));
56
+
57
+ foreach ($iterator as $name => $contents) {
58
+ try {
59
+ $this->twig->parse($this->twig->tokenize($contents, $name));
60
+ } catch (Twig_Error_Syntax $e) {
61
+ // ignore templates containing syntax errors
62
+ }
63
+ }
64
+
65
+ restore_error_handler();
66
+
67
+ $deprecations = $this->deprecations;
68
+ $this->deprecations = array();
69
+
70
+ return $deprecations;
71
+ }
72
+
73
+ /**
74
+ * @internal
75
+ */
76
+ public function errorHandler($type, $msg)
77
+ {
78
+ if (E_USER_DEPRECATED === $type) {
79
+ $this->deprecations[] = $msg;
80
+ }
81
+ }
82
+ }
vendor/twig/twig/lib/Twig/Util/TemplateDirIterator.php ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /*
4
+ * This file is part of Twig.
5
+ *
6
+ * (c) Fabien Potencier
7
+ *
8
+ * For the full copyright and license information, please view the LICENSE
9
+ * file that was distributed with this source code.
10
+ */
11
+
12
+ /**
13
+ * @author Fabien Potencier <fabien@symfony.com>
14
+ */
15
+ class Twig_Util_TemplateDirIterator extends IteratorIterator
16
+ {
17
+ public function current()
18
+ {
19
+ return file_get_contents(parent::current());
20
+ }
21
+
22
+ public function key()
23
+ {
24
+ return (string) parent::key();
25
+ }
26
+ }
vendor/twig/twig/phpunit.xml.dist CHANGED
@@ -9,7 +9,7 @@
9
  processIsolation="false"
10
  stopOnFailure="false"
11
  syntaxCheck="false"
12
- bootstrap="test/bootstrap.php"
13
  >
14
  <testsuites>
15
  <testsuite name="Twig Test Suite">
9
  processIsolation="false"
10
  stopOnFailure="false"
11
  syntaxCheck="false"
12
+ bootstrap="vendor/autoload.php"
13
  >
14
  <testsuites>
15
  <testsuite name="Twig Test Suite">
vendor/twig/twig/test/Twig/Tests/AutoloaderTest.php CHANGED
@@ -11,6 +11,9 @@
11
 
12
  class Twig_Tests_AutoloaderTest extends PHPUnit_Framework_TestCase
13
  {
 
 
 
14
  public function testAutoload()
15
  {
16
  $this->assertFalse(class_exists('FooBarFoo'), '->autoload() does not try to load classes that does not begin with Twig');
11
 
12
  class Twig_Tests_AutoloaderTest extends PHPUnit_Framework_TestCase
13
  {
14
+ /**
15
+ * @group legacy
16
+ */
17
  public function testAutoload()
18
  {
19
  $this->assertFalse(class_exists('FooBarFoo'), '->autoload() does not try to load classes that does not begin with Twig');
vendor/twig/twig/test/Twig/Tests/CompilerTest.php CHANGED
@@ -13,7 +13,7 @@ class Twig_Tests_CompilerTest extends PHPUnit_Framework_TestCase
13
  {
14
  public function testReprNumericValueWithLocale()
15
  {
16
- $compiler = new Twig_Compiler(new Twig_Environment());
17
 
18
  $locale = setlocale(LC_NUMERIC, 0);
19
  if (false === $locale) {
@@ -22,7 +22,7 @@ class Twig_Tests_CompilerTest extends PHPUnit_Framework_TestCase
22
 
23
  $required_locales = array('fr_FR.UTF-8', 'fr_FR.UTF8', 'fr_FR.utf-8', 'fr_FR.utf8', 'French_France.1252');
24
  if (false === setlocale(LC_NUMERIC, $required_locales)) {
25
- $this->markTestSkipped('Could not set any of required locales: '.implode(", ", $required_locales));
26
  }
27
 
28
  $this->assertEquals('1.2', $compiler->repr(1.2)->getSource());
13
  {
14
  public function testReprNumericValueWithLocale()
15
  {
16
+ $compiler = new Twig_Compiler(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
17
 
18
  $locale = setlocale(LC_NUMERIC, 0);
19
  if (false === $locale) {
22
 
23
  $required_locales = array('fr_FR.UTF-8', 'fr_FR.UTF8', 'fr_FR.utf-8', 'fr_FR.utf8', 'French_France.1252');
24
  if (false === setlocale(LC_NUMERIC, $required_locales)) {
25
+ $this->markTestSkipped('Could not set any of required locales: '.implode(', ', $required_locales));
26
  }
27
 
28
  $this->assertEquals('1.2', $compiler->repr(1.2)->getSource());
vendor/twig/twig/test/Twig/Tests/EnvironmentTest.php CHANGED
@@ -14,6 +14,7 @@ class Twig_Tests_EnvironmentTest extends PHPUnit_Framework_TestCase
14
  /**
15
  * @expectedException LogicException
16
  * @expectedExceptionMessage You must set a loader first.
 
17
  */
18
  public function testRenderNoLoader()
19
  {
@@ -25,12 +26,12 @@ class Twig_Tests_EnvironmentTest extends PHPUnit_Framework_TestCase
25
  {
26
  $loader = new Twig_Loader_Array(array(
27
  'html' => '{{ foo }} {{ foo }}',
28
- 'js' => '{{ bar }} {{ bar }}',
29
  ));
30
 
31
  $twig = new Twig_Environment($loader, array(
32
- 'debug' => true,
33
- 'cache' => false,
34
  'autoescape' => array($this, 'escapingStrategyCallback'),
35
  ));
36
 
@@ -56,7 +57,7 @@ class Twig_Tests_EnvironmentTest extends PHPUnit_Framework_TestCase
56
  // globals can be modified after runtime init
57
  $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
58
  $twig->addGlobal('foo', 'foo');
59
- $globals = $twig->getGlobals();
60
  $twig->initRuntime();
61
  $twig->addGlobal('foo', 'bar');
62
  $globals = $twig->getGlobals();
@@ -91,7 +92,7 @@ class Twig_Tests_EnvironmentTest extends PHPUnit_Framework_TestCase
91
  // globals cannot be added after runtime init
92
  $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
93
  $twig->addGlobal('foo', 'foo');
94
- $globals = $twig->getGlobals();
95
  $twig->initRuntime();
96
  try {
97
  $twig->addGlobal('bar', 'bar');
@@ -103,7 +104,7 @@ class Twig_Tests_EnvironmentTest extends PHPUnit_Framework_TestCase
103
  // globals cannot be added after extensions init
104
  $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
105
  $twig->addGlobal('foo', 'foo');
106
- $globals = $twig->getGlobals();
107
  $twig->getFunctions();
108
  try {
109
  $twig->addGlobal('bar', 'bar');
@@ -115,7 +116,7 @@ class Twig_Tests_EnvironmentTest extends PHPUnit_Framework_TestCase
115
  // globals cannot be added after extensions and runtime init
116
  $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
117
  $twig->addGlobal('foo', 'foo');
118
- $globals = $twig->getGlobals();
119
  $twig->getFunctions();
120
  $twig->initRuntime();
121
  try {
@@ -182,6 +183,9 @@ class Twig_Tests_EnvironmentTest extends PHPUnit_Framework_TestCase
182
  $this->assertEquals('Twig_Tests_EnvironmentTest_NodeVisitor', get_class($visitors[2]));
183
  }
184
 
 
 
 
185
  public function testRemoveExtension()
186
  {
187
  $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
14
  /**
15
  * @expectedException LogicException
16
  * @expectedExceptionMessage You must set a loader first.
17
+ * @group legacy
18
  */
19
  public function testRenderNoLoader()
20
  {
26
  {
27
  $loader = new Twig_Loader_Array(array(
28
  'html' => '{{ foo }} {{ foo }}',
29
+ 'js' => '{{ bar }} {{ bar }}',
30
  ));
31
 
32
  $twig = new Twig_Environment($loader, array(
33
+ 'debug' => true,
34
+ 'cache' => false,
35
  'autoescape' => array($this, 'escapingStrategyCallback'),
36
  ));
37
 
57
  // globals can be modified after runtime init
58
  $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
59
  $twig->addGlobal('foo', 'foo');
60
+ $twig->getGlobals();
61
  $twig->initRuntime();
62
  $twig->addGlobal('foo', 'bar');
63
  $globals = $twig->getGlobals();
92
  // globals cannot be added after runtime init
93
  $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
94
  $twig->addGlobal('foo', 'foo');
95
+ $twig->getGlobals();
96
  $twig->initRuntime();
97
  try {
98
  $twig->addGlobal('bar', 'bar');
104
  // globals cannot be added after extensions init
105
  $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
106
  $twig->addGlobal('foo', 'foo');
107
+ $twig->getGlobals();
108
  $twig->getFunctions();
109
  try {
110
  $twig->addGlobal('bar', 'bar');
116
  // globals cannot be added after extensions and runtime init
117
  $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
118
  $twig->addGlobal('foo', 'foo');
119
+ $twig->getGlobals();
120
  $twig->getFunctions();
121
  $twig->initRuntime();
122
  try {
183
  $this->assertEquals('Twig_Tests_EnvironmentTest_NodeVisitor', get_class($visitors[2]));
184
  }
185
 
186
+ /**
187
+ * @group legacy
188
+ */
189
  public function testRemoveExtension()
190
  {
191
  $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
vendor/twig/twig/test/Twig/Tests/ErrorTest.php CHANGED
@@ -99,7 +99,7 @@ class Twig_Tests_ErrorTest extends PHPUnit_Framework_TestCase
99
  // error occurs in an included template
100
  array(
101
  array(
102
- 'index' => "{% include 'partial' %}",
103
  'partial' => '{{ foo.bar }}',
104
  ),
105
  'partial', 1,
99
  // error occurs in an included template
100
  array(
101
  array(
102
+ 'index' => "{% include 'partial' %}",
103
  'partial' => '{{ foo.bar }}',
104
  ),
105
  'partial', 1,
vendor/twig/twig/test/Twig/Tests/Extension/CoreTest.php CHANGED
@@ -16,9 +16,9 @@ class Twig_Tests_Extension_CoreTest extends PHPUnit_Framework_TestCase
16
  */
17
  public function testRandomFunction($value, $expectedInArray)
18
  {
19
- $env = new Twig_Environment();
20
 
21
- for ($i = 0; $i < 100; $i++) {
22
  $this->assertTrue(in_array(twig_random($env, $value), $expectedInArray, true)); // assertContains() would not consider the type
23
  }
24
  }
@@ -26,31 +26,31 @@ class Twig_Tests_Extension_CoreTest extends PHPUnit_Framework_TestCase
26
  public function getRandomFunctionTestData()
27
  {
28
  return array(
29
- array( // array
30
  array('apple', 'orange', 'citrus'),
31
  array('apple', 'orange', 'citrus'),
32
  ),
33
- array( // Traversable
34
  new ArrayObject(array('apple', 'orange', 'citrus')),
35
  array('apple', 'orange', 'citrus'),
36
  ),
37
- array( // unicode string
38
  'Ä€é',
39
  array('Ä', '€', 'é'),
40
  ),
41
- array( // numeric but string
42
  '123',
43
  array('1', '2', '3'),
44
  ),
45
- array( // integer
46
  5,
47
  range(0, 5, 1),
48
  ),
49
- array( // float
50
  5.9,
51
  range(0, 5, 1),
52
  ),
53
- array( // negative
54
  -2,
55
  array(0, -1, -2),
56
  ),
@@ -61,19 +61,19 @@ class Twig_Tests_Extension_CoreTest extends PHPUnit_Framework_TestCase
61
  {
62
  $max = mt_getrandmax();
63
 
64
- for ($i = 0; $i < 100; $i++) {
65
- $val = twig_random(new Twig_Environment());
66
  $this->assertTrue(is_int($val) && $val >= 0 && $val <= $max);
67
  }
68
  }
69
 
70
  public function testRandomFunctionReturnsAsIs()
71
  {
72
- $this->assertSame('', twig_random(new Twig_Environment(), ''));
73
- $this->assertSame('', twig_random(new Twig_Environment(null, array('charset' => null)), ''));
74
 
75
  $instance = new stdClass();
76
- $this->assertSame($instance, twig_random(new Twig_Environment(), $instance));
77
  }
78
 
79
  /**
@@ -81,7 +81,7 @@ class Twig_Tests_Extension_CoreTest extends PHPUnit_Framework_TestCase
81
  */
82
  public function testRandomFunctionOfEmptyArrayThrowsException()
83
  {
84
- twig_random(new Twig_Environment(), array());
85
  }
86
 
87
  public function testRandomFunctionOnNonUTF8String()
@@ -90,11 +90,11 @@ class Twig_Tests_Extension_CoreTest extends PHPUnit_Framework_TestCase
90
  $this->markTestSkipped('needs iconv or mbstring');
91
  }
92
 
93
- $twig = new Twig_Environment();
94
  $twig->setCharset('ISO-8859-1');
95
 
96
  $text = twig_convert_encoding('Äé', 'ISO-8859-1', 'UTF-8');
97
- for ($i = 0; $i < 30; $i++) {
98
  $rand = twig_random($twig, $text);
99
  $this->assertTrue(in_array(twig_convert_encoding($rand, 'UTF-8', 'ISO-8859-1'), array('Ä', 'é'), true));
100
  }
@@ -106,7 +106,7 @@ class Twig_Tests_Extension_CoreTest extends PHPUnit_Framework_TestCase
106
  $this->markTestSkipped('needs iconv or mbstring');
107
  }
108
 
109
- $twig = new Twig_Environment();
110
  $twig->setCharset('ISO-8859-1');
111
 
112
  $input = twig_convert_encoding('Äé', 'ISO-8859-1', 'UTF-8');
@@ -117,7 +117,7 @@ class Twig_Tests_Extension_CoreTest extends PHPUnit_Framework_TestCase
117
 
118
  public function testCustomEscaper()
119
  {
120
- $twig = new Twig_Environment();
121
  $twig->getExtension('core')->setEscaper('foo', 'foo_escaper_for_test');
122
 
123
  $this->assertEquals('fooUTF-8', twig_escape_filter($twig, 'foo', 'foo'));
@@ -128,12 +128,12 @@ class Twig_Tests_Extension_CoreTest extends PHPUnit_Framework_TestCase
128
  */
129
  public function testUnknownCustomEscaper()
130
  {
131
- twig_escape_filter(new Twig_Environment(), 'foo', 'bar');
132
  }
133
 
134
  public function testTwigFirst()
135
  {
136
- $twig = new Twig_Environment();
137
  $this->assertEquals('a', twig_first($twig, 'abc'));
138
  $this->assertEquals(1, twig_first($twig, array(1, 2, 3)));
139
  $this->assertSame('', twig_first($twig, null));
@@ -142,7 +142,7 @@ class Twig_Tests_Extension_CoreTest extends PHPUnit_Framework_TestCase
142
 
143
  public function testTwigLast()
144
  {
145
- $twig = new Twig_Environment();
146
  $this->assertEquals('c', twig_last($twig, 'abc'));
147
  $this->assertEquals(3, twig_last($twig, array(1, 2, 3)));
148
  $this->assertSame('', twig_last($twig, null));
16
  */
17
  public function testRandomFunction($value, $expectedInArray)
18
  {
19
+ $env = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
20
 
21
+ for ($i = 0; $i < 100; ++$i) {
22
  $this->assertTrue(in_array(twig_random($env, $value), $expectedInArray, true)); // assertContains() would not consider the type
23
  }
24
  }
26
  public function getRandomFunctionTestData()
27
  {
28
  return array(
29
+ array(// array
30
  array('apple', 'orange', 'citrus'),
31
  array('apple', 'orange', 'citrus'),
32
  ),
33
+ array(// Traversable
34
  new ArrayObject(array('apple', 'orange', 'citrus')),
35
  array('apple', 'orange', 'citrus'),
36
  ),
37
+ array(// unicode string
38
  'Ä€é',
39
  array('Ä', '€', 'é'),
40
  ),
41
+ array(// numeric but string
42
  '123',
43
  array('1', '2', '3'),
44
  ),
45
+ array(// integer
46
  5,
47
  range(0, 5, 1),
48
  ),
49
+ array(// float
50
  5.9,
51
  range(0, 5, 1),
52
  ),
53
+ array(// negative
54
  -2,
55
  array(0, -1, -2),
56
  ),
61
  {
62
  $max = mt_getrandmax();
63
 
64
+ for ($i = 0; $i < 100; ++$i) {
65
+ $val = twig_random(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
66
  $this->assertTrue(is_int($val) && $val >= 0 && $val <= $max);
67
  }
68
  }
69
 
70
  public function testRandomFunctionReturnsAsIs()
71
  {
72
+ $this->assertSame('', twig_random(new Twig_Environment($this->getMock('Twig_LoaderInterface')), ''));
73
+ $this->assertSame('', twig_random(new Twig_Environment($this->getMock('Twig_LoaderInterface'), array('charset' => null)), ''));
74
 
75
  $instance = new stdClass();
76
+ $this->assertSame($instance, twig_random(new Twig_Environment($this->getMock('Twig_LoaderInterface')), $instance));
77
  }
78
 
79
  /**
81
  */
82
  public function testRandomFunctionOfEmptyArrayThrowsException()
83
  {
84
+ twig_random(new Twig_Environment($this->getMock('Twig_LoaderInterface')), array());
85
  }
86
 
87
  public function testRandomFunctionOnNonUTF8String()
90
  $this->markTestSkipped('needs iconv or mbstring');
91
  }
92
 
93
+ $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
94
  $twig->setCharset('ISO-8859-1');
95
 
96
  $text = twig_convert_encoding('Äé', 'ISO-8859-1', 'UTF-8');
97
+ for ($i = 0; $i < 30; ++$i) {
98
  $rand = twig_random($twig, $text);
99
  $this->assertTrue(in_array(twig_convert_encoding($rand, 'UTF-8', 'ISO-8859-1'), array('Ä', 'é'), true));
100
  }
106
  $this->markTestSkipped('needs iconv or mbstring');
107
  }
108
 
109
+ $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
110
  $twig->setCharset('ISO-8859-1');
111
 
112
  $input = twig_convert_encoding('Äé', 'ISO-8859-1', 'UTF-8');
117
 
118
  public function testCustomEscaper()
119
  {
120
+ $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
121
  $twig->getExtension('core')->setEscaper('foo', 'foo_escaper_for_test');
122
 
123
  $this->assertEquals('fooUTF-8', twig_escape_filter($twig, 'foo', 'foo'));
128
  */
129
  public function testUnknownCustomEscaper()
130
  {
131
+ twig_escape_filter(new Twig_Environment($this->getMock('Twig_LoaderInterface')), 'foo', 'bar');
132
  }
133
 
134
  public function testTwigFirst()
135
  {
136
+ $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
137
  $this->assertEquals('a', twig_first($twig, 'abc'));
138
  $this->assertEquals(1, twig_first($twig, array(1, 2, 3)));
139
  $this->assertSame('', twig_first($twig, null));
142
 
143
  public function testTwigLast()
144
  {
145
+ $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
146
  $this->assertEquals('c', twig_last($twig, 'abc'));
147
  $this->assertEquals(3, twig_last($twig, array(1, 2, 3)));
148
  $this->assertSame('', twig_last($twig, null));
vendor/twig/twig/test/Twig/Tests/Extension/SandboxTest.php CHANGED
@@ -17,8 +17,8 @@ class Twig_Tests_Extension_SandboxTest extends PHPUnit_Framework_TestCase
17
  {
18
  self::$params = array(
19
  'name' => 'Fabien',
20
- 'obj' => new FooObject(),
21
- 'arr' => array('obj' => new FooObject()),
22
  );
23
 
24
  self::$templates = array(
@@ -31,9 +31,9 @@ class Twig_Tests_Extension_SandboxTest extends PHPUnit_Framework_TestCase
31
  '1_basic7' => '{{ cycle(["foo","bar"], 1) }}',
32
  '1_basic8' => '{{ obj.getfoobar }}{{ obj.getFooBar }}',
33
  '1_basic9' => '{{ obj.foobar }}{{ obj.fooBar }}',
34
- '1_basic' => '{% if obj.foo %}{{ obj.foo|upper }}{% endif %}',
35
  '1_layout' => '{% block content %}{% endblock %}',
36
- '1_child' => "{% extends \"1_layout\" %}\n{% block content %}\n{{ \"a\"|json_encode }}\n{% endblock %}",
37
  );
38
  }
39
 
@@ -141,7 +141,7 @@ class Twig_Tests_Extension_SandboxTest extends PHPUnit_Framework_TestCase
141
  public function testSandboxLocallySetForAnInclude()
142
  {
143
  self::$templates = array(
144
- '2_basic' => '{{ obj.foo }}{% include "2_included" %}{{ obj.foo }}',
145
  '2_included' => '{% if obj.foo %}{{ obj.foo|upper }}{% endif %}',
146
  );
147
 
@@ -149,7 +149,7 @@ class Twig_Tests_Extension_SandboxTest extends PHPUnit_Framework_TestCase
149
  $this->assertEquals('fooFOOfoo', $twig->loadTemplate('2_basic')->render(self::$params), 'Sandbox does nothing if disabled globally and sandboxed not used for the include');
150
 
151
  self::$templates = array(
152
- '3_basic' => '{{ obj.foo }}{% sandbox %}{% include "3_included" %}{% endsandbox %}{{ obj.foo }}',
153
  '3_included' => '{% if obj.foo %}{{ obj.foo|upper }}{% endif %}',
154
  );
155
 
@@ -163,7 +163,7 @@ class Twig_Tests_Extension_SandboxTest extends PHPUnit_Framework_TestCase
163
 
164
  public function testMacrosInASandbox()
165
  {
166
- $twig = $this->getEnvironment(true, array('autoescape' => true), array('index' => <<<EOF
167
  {%- import _self as macros %}
168
 
169
  {%- macro test(text) %}<p>{{ text }}</p>{% endmacro %}
17
  {
18
  self::$params = array(
19
  'name' => 'Fabien',
20
+ 'obj' => new FooObject(),
21
+ 'arr' => array('obj' => new FooObject()),
22
  );
23
 
24
  self::$templates = array(
31
  '1_basic7' => '{{ cycle(["foo","bar"], 1) }}',
32
  '1_basic8' => '{{ obj.getfoobar }}{{ obj.getFooBar }}',
33
  '1_basic9' => '{{ obj.foobar }}{{ obj.fooBar }}',
34
+ '1_basic' => '{% if obj.foo %}{{ obj.foo|upper }}{% endif %}',
35
  '1_layout' => '{% block content %}{% endblock %}',
36
+ '1_child' => "{% extends \"1_layout\" %}\n{% block content %}\n{{ \"a\"|json_encode }}\n{% endblock %}",
37
  );
38
  }
39
 
141
  public function testSandboxLocallySetForAnInclude()
142
  {
143
  self::$templates = array(
144
+ '2_basic' => '{{ obj.foo }}{% include "2_included" %}{{ obj.foo }}',
145
  '2_included' => '{% if obj.foo %}{{ obj.foo|upper }}{% endif %}',
146
  );
147
 
149
  $this->assertEquals('fooFOOfoo', $twig->loadTemplate('2_basic')->render(self::$params), 'Sandbox does nothing if disabled globally and sandboxed not used for the include');
150
 
151
  self::$templates = array(
152
+ '3_basic' => '{{ obj.foo }}{% sandbox %}{% include "3_included" %}{% endsandbox %}{{ obj.foo }}',
153
  '3_included' => '{% if obj.foo %}{{ obj.foo|upper }}{% endif %}',
154
  );
155
 
163
 
164
  public function testMacrosInASandbox()
165
  {
166
+ $twig = $this->getEnvironment(true, array('autoescape' => 'html'), array('index' => <<<EOF
167
  {%- import _self as macros %}
168
 
169
  {%- macro test(text) %}<p>{{ text }}</p>{% endmacro %}
vendor/twig/twig/test/Twig/Tests/Fixtures/autoescape/filename.test ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ "filename" autoescape strategy
3
+ --TEMPLATE--
4
+ {{ br -}}
5
+ {{ include('index.html.twig') -}}
6
+ {{ include('index.txt.twig') -}}
7
+ --TEMPLATE(index.html.twig)--
8
+ {{ br -}}
9
+ --TEMPLATE(index.txt.twig)--
10
+ {{ br -}}
11
+ --DATA--
12
+ return array('br' => '<br />')
13
+ --CONFIG--
14
+ return array('autoescape' => 'filename')
15
+ --EXPECT--
16
+ &lt;br /&gt;
17
+ &lt;br /&gt;
18
+ <br />
vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/multiline_array_with_undefined_variable.test ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ Exception for multiline array with undefined variable
3
+ --TEMPLATE--
4
+ {% set foo = {
5
+ foo: 'foo',
6
+ bar: 'bar',
7
+
8
+
9
+ foobar: foobar,
10
+
11
+
12
+
13
+ foo2: foo2,
14
+ } %}
15
+ --DATA--
16
+ return array('foobar' => 'foobar')
17
+ --EXCEPTION--
18
+ Twig_Error_Runtime: Variable "foo2" does not exist in "index.twig" at line 11
vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/multiline_array_with_undefined_variable_again.test ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ Exception for multiline array with undefined variable
3
+ --TEMPLATE--
4
+ {% set foo = {
5
+ foo: 'foo',
6
+ bar: 'bar',
7
+
8
+
9
+ foobar: foobar,
10
+
11
+
12
+
13
+ foo2: foo2,
14
+ } %}
15
+ --DATA--
16
+ return array()
17
+ --EXCEPTION--
18
+ Twig_Error_Runtime: Variable "foobar" does not exist in "index.twig" at line 7
vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/multiline_function_with_undefined_variable.test ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ Exception for multile function with undefined variable
3
+ --TEMPLATE--
4
+ {{ include('foo',
5
+ with_context=with_context
6
+ ) }}
7
+ --TEMPLATE(foo)--
8
+ Foo
9
+ --DATA--
10
+ return array()
11
+ --EXCEPTION--
12
+ Twig_Error_Runtime: Variable "with_context" does not exist in "index.twig" at line 3
vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/multiline_function_with_unknown_argument.test ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ Exception for multiline function with unknown argument
3
+ --TEMPLATE--
4
+ {{ include('foo',
5
+ with_context=True,
6
+ invalid=False
7
+ ) }}
8
+ --EXCEPTION--
9
+ Twig_Error_Syntax: Unknown argument "invalid" for function "include(template, variables, with_context, ignore_missing, sandboxed)" in "index.twig" at line 4.
vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/multiline_tag_with_undefined_variable.test ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ Exception for multiline tag with undefined variable
3
+ --TEMPLATE--
4
+ {% include 'foo'
5
+ with vars
6
+ %}
7
+ --TEMPLATE(foo)--
8
+ Foo
9
+ --DATA--
10
+ return array()
11
+ --EXCEPTION--
12
+ Twig_Error_Runtime: Variable "vars" does not exist in "index.twig" at line 3
vendor/twig/twig/test/Twig/Tests/Fixtures/exceptions/undefined_parent.test ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ Exception for an undefined parent
3
+ --TEMPLATE--
4
+ {% extends 'foo.html' %}
5
+
6
+ {% set foo = "foo" %}
7
+ --EXCEPTION--
8
+ Twig_Error_Loader: Template "foo.html" is not defined in "index.twig" at line 2.
vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/negative_numbers.test ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ Twig manages negative numbers correctly
3
+ --TEMPLATE--
4
+ {{ -1 }}
5
+ {{ - 1 }}
6
+ {{ 5 - 1 }}
7
+ {{ 5-1 }}
8
+ {{ 5 + -1 }}
9
+ {{ 5 + - 1 }}
10
+ --DATA--
11
+ return array()
12
+ --EXPECT--
13
+ -1
14
+ -1
15
+ 4
16
+ 4
17
+ 4
18
+ 4
vendor/twig/twig/test/Twig/Tests/Fixtures/expressions/unary_macro_arguments.test ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ Twig manages negative numbers as default parameters
3
+ --TEMPLATE--
4
+ {% import _self as macros %}
5
+ {{ macros.negative_number1() }}
6
+ {{ macros.negative_number2() }}
7
+ {{ macros.negative_number3() }}
8
+ {{ macros.positive_number1() }}
9
+ {{ macros.positive_number2() }}
10
+ {% macro negative_number1(nb=-1) %}{{ nb }}{% endmacro %}
11
+ {% macro negative_number2(nb = --1) %}{{ nb }}{% endmacro %}
12
+ {% macro negative_number3(nb = - 1) %}{{ nb }}{% endmacro %}
13
+ {% macro positive_number1(nb = +1) %}{{ nb }}{% endmacro %}
14
+ {% macro positive_number2(nb = ++1) %}{{ nb }}{% endmacro %}
15
+ --DATA--
16
+ return array()
17
+ --EXPECT--
18
+ -1
19
+ 1
20
+ -1
21
+ 1
22
+ 1
vendor/twig/twig/test/Twig/Tests/Fixtures/filters/{batch_float.php → batch_float.test} RENAMED
@@ -15,17 +15,15 @@ return array('items' => array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j'))
15
  <div class=item>a</div>
16
  <div class=item>b</div>
17
  <div class=item>c</div>
 
18
  </div>
19
  <div class=row>
20
- <div class=item>d</div>
21
  <div class=item>e</div>
22
  <div class=item>f</div>
23
- </div>
24
- <div class=row>
25
  <div class=item>g</div>
26
  <div class=item>h</div>
27
- <div class=item>i</div>
28
  </div>
29
  <div class=row>
 
30
  <div class=item>j</div>
31
  </div>
15
  <div class=item>a</div>
16
  <div class=item>b</div>
17
  <div class=item>c</div>
18
+ <div class=item>d</div>
19
  </div>
20
  <div class=row>
 
21
  <div class=item>e</div>
22
  <div class=item>f</div>
 
 
23
  <div class=item>g</div>
24
  <div class=item>h</div>
 
25
  </div>
26
  <div class=row>
27
+ <div class=item>i</div>
28
  <div class=item>j</div>
29
  </div>
vendor/twig/twig/test/Twig/Tests/Fixtures/filters/split_utf8.test ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ "split" filter
3
+ --CONDITION--
4
+ function_exists('mb_get_info')
5
+ --TEMPLATE--
6
+ {{ "é"|split('', 10)|join('-') }}
7
+ {{ foo|split(',')|join('-') }}
8
+ {{ foo|split(',', 1)|join('-') }}
9
+ {{ foo|split(',', 2)|join('-') }}
10
+ {{ foo|split(',', 3)|join('-') }}
11
+ {{ baz|split('')|join('-') }}
12
+ {{ baz|split('', 1)|join('-') }}
13
+ {{ baz|split('', 2)|join('-') }}
14
+ --DATA--
15
+ return array('foo' => 'Ä,é,Äほ', 'baz' => 'éÄßごa',)
16
+ --EXPECT--
17
+ é
18
+ Ä-é-Äほ
19
+ Ä,é,Äほ
20
+ Ä-é,Äほ
21
+ Ä-é-Äほ
22
+ é-Ä-ß-ご-a
23
+ é-Ä-ß-ご-a
24
+ éÄ-ßご-a
vendor/twig/twig/test/Twig/Tests/Fixtures/filters/urlencode_deprecated.test ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ "url_encode" filter for PHP < 5.4 and HHVM
3
+ --CONDITION--
4
+ defined('PHP_QUERY_RFC3986')
5
+ --TEMPLATE--
6
+ {{ {foo: "bar", number: 3, "spéßi%l": "e%c0d@d", "spa ce": ""}|url_encode }}
7
+ {{ {foo: "bar", number: 3, "spéßi%l": "e%c0d@d", "spa ce": ""}|url_encode|raw }}
8
+ {{ {}|url_encode|default("default") }}
9
+ {{ 'spéßi%le%c0d@dspa ce'|url_encode }}
10
+ --DATA--
11
+ return array()
12
+ --EXPECT--
13
+ foo=bar&amp;number=3&amp;sp%C3%A9%C3%9Fi%25l=e%25c0d%40d&amp;spa%20ce=
14
+ foo=bar&number=3&sp%C3%A9%C3%9Fi%25l=e%25c0d%40d&spa%20ce=
15
+ default
16
+ sp%C3%A9%C3%9Fi%25le%25c0d%40dspa%20ce
vendor/twig/twig/test/Twig/Tests/Fixtures/functions/recursive_block_with_inheritance.test ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ "block" function recursively called in a parent template
3
+ --TEMPLATE--
4
+ {% extends "ordered_menu.twig" %}
5
+ {% block label %}"{{ parent() }}"{% endblock %}
6
+ {% block list %}{% set class = 'b' %}{{ parent() }}{% endblock %}
7
+ --TEMPLATE(ordered_menu.twig)--
8
+ {% extends "menu.twig" %}
9
+ {% block list %}{% set class = class|default('a') %}<ol class="{{ class }}">{{ block('children') }}</ol>{% endblock %}
10
+ --TEMPLATE(menu.twig)--
11
+ {% extends "base.twig" %}
12
+ {% block list %}<ul>{{ block('children') }}</ul>{% endblock %}
13
+ {% block children %}{% set currentItem = item %}{% for item in currentItem %}{{ block('item') }}{% endfor %}{% set item = currentItem %}{% endblock %}
14
+ {% block item %}<li>{% if item is not iterable %}{{ block('label') }}{% else %}{{ block('list') }}{% endif %}</li>{% endblock %}
15
+ {% block label %}{{ item }}{{ block('unknown') }}{% endblock %}
16
+ --TEMPLATE(base.twig)--
17
+ {{ block('list') }}
18
+ --DATA--
19
+ return array('item' => array('1', '2', array('3.1', array('3.2.1', '3.2.2'), '3.4')))
20
+ --EXPECT--
21
+ <ol class="b"><li>"1"</li><li>"2"</li><li><ol class="b"><li>"3.1"</li><li><ol class="b"><li>"3.2.1"</li><li>"3.2.2"</li></ol></li><li>"3.4"</li></ol></li></ol>
vendor/twig/twig/test/Twig/Tests/Fixtures/regression/combined_debug_info.test ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ Exception with bad line number
3
+ --TEMPLATE--
4
+ {% block content %}
5
+ {{ foo }}
6
+ {{ include("foo") }}
7
+ {% endblock %}
8
+ index
9
+ --TEMPLATE(foo)--
10
+ foo
11
+ {{ foo.bar }}
12
+ --DATA--
13
+ return array('foo' => 'foo');
14
+ --EXCEPTION--
15
+ Twig_Error_Runtime: Impossible to access an attribute ("bar") on a string variable ("foo") in "foo" at line 3
vendor/twig/twig/test/Twig/Tests/Fixtures/regression/multi_word_tests.test ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ Twig allows multi-word tests without a custom node class
3
+ --TEMPLATE--
4
+ {{ 'foo' is multi word ? 'yes' : 'no' }}
5
+ {{ 'foo bar' is multi word ? 'yes' : 'no' }}
6
+ --DATA--
7
+ return array()
8
+ --EXPECT--
9
+ no
10
+ yes
vendor/twig/twig/test/Twig/Tests/Fixtures/tags/autoescape/strategy.test CHANGED
@@ -1,10 +1,6 @@
1
  --TEST--
2
  "autoescape" tag accepts an escaping strategy
3
  --TEMPLATE--
4
- {% autoescape true js %}{{ var }}{% endautoescape %}
5
-
6
- {% autoescape true html %}{{ var }}{% endautoescape %}
7
-
8
  {% autoescape 'js' %}{{ var }}{% endautoescape %}
9
 
10
  {% autoescape 'html' %}{{ var }}{% endautoescape %}
@@ -13,5 +9,3 @@ return array('var' => '<br />"')
13
  --EXPECT--
14
  \x3Cbr\x20\x2F\x3E\x22
15
  &lt;br /&gt;&quot;
16
- \x3Cbr\x20\x2F\x3E\x22
17
- &lt;br /&gt;&quot;
1
  --TEST--
2
  "autoescape" tag accepts an escaping strategy
3
  --TEMPLATE--
 
 
 
 
4
  {% autoescape 'js' %}{{ var }}{% endautoescape %}
5
 
6
  {% autoescape 'html' %}{{ var }}{% endautoescape %}
9
  --EXPECT--
10
  \x3Cbr\x20\x2F\x3E\x22
11
  &lt;br /&gt;&quot;
 
 
vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/block_expr.test ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ block_expr
3
+ --TEMPLATE--
4
+ {% extends "base.twig" %}
5
+
6
+ {% block element -%}
7
+ Element:
8
+ {{- parent() -}}
9
+ {% endblock %}
10
+ --TEMPLATE(base.twig)--
11
+ {% spaceless %}
12
+ {% block element -%}
13
+ <div>
14
+ {%- if item.children is defined %}
15
+ {%- for item in item.children %}
16
+ {{- block('element') -}}
17
+ {% endfor %}
18
+ {%- endif -%}
19
+ </div>
20
+ {%- endblock %}
21
+ {% endspaceless %}
22
+ --DATA--
23
+ return array(
24
+ 'item' => array(
25
+ 'children' => array(
26
+ null,
27
+ null,
28
+ )
29
+ )
30
+ )
31
+ --EXPECT--
32
+ Element:<div>Element:<div></div>Element:<div></div></div>
vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/block_expr2.test ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ block_expr2
3
+ --TEMPLATE--
4
+ {% extends "base2.twig" %}
5
+
6
+ {% block element -%}
7
+ Element:
8
+ {{- parent() -}}
9
+ {% endblock %}
10
+ --TEMPLATE(base2.twig)--
11
+ {% extends "base.twig" %}
12
+ --TEMPLATE(base.twig)--
13
+ {% spaceless %}
14
+ {% block element -%}
15
+ <div>
16
+ {%- if item.children is defined %}
17
+ {%- for item in item.children %}
18
+ {{- block('element') -}}
19
+ {% endfor %}
20
+ {%- endif -%}
21
+ </div>
22
+ {%- endblock %}
23
+ {% endspaceless %}
24
+ --DATA--
25
+ return array(
26
+ 'item' => array(
27
+ 'children' => array(
28
+ null,
29
+ null,
30
+ )
31
+ )
32
+ )
33
+ --EXPECT--
34
+ Element:<div>Element:<div></div>Element:<div></div></div>
vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/extends_as_array_with_empty_name.test ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ "extends" tag
3
+ --TEMPLATE--
4
+ {% extends ["", "bar.twig"] %}
5
+ --TEMPLATE(bar.twig)--
6
+ {% block content %}
7
+ foo
8
+ {% endblock %}
9
+ --DATA--
10
+ return array()
11
+ --EXPECT--
12
+ foo
vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/extends_as_array_with_null_name.test ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ "extends" tag
3
+ --TEMPLATE--
4
+ {% extends [null, "bar.twig"] %}
5
+ --TEMPLATE(bar.twig)--
6
+ {% block content %}
7
+ foo
8
+ {% endblock %}
9
+ --DATA--
10
+ return array()
11
+ --EXPECT--
12
+ foo
vendor/twig/twig/test/Twig/Tests/Fixtures/tags/inheritance/multiple_dynamic.test ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ "extends" tag
3
+ --TEMPLATE--
4
+ {% set foo = 1 %}
5
+ {{ include('parent.twig') }}
6
+ {{ include('parent.twig') }}
7
+ {% set foo = 2 %}
8
+ {{ include('parent.twig') }}
9
+ --TEMPLATE(parent.twig)--
10
+ {% extends foo~'_parent.twig' %}{% block content %}{{ parent() }} parent{% endblock %}
11
+ --TEMPLATE(1_parent.twig)--
12
+ {% block content %}1{% endblock %}
13
+ --TEMPLATE(2_parent.twig)--
14
+ {% block content %}2{% endblock %}
15
+ --DATA--
16
+ return array()
17
+ --EXPECT--
18
+ 1 parent
19
+
20
+ 1 parent
21
+
22
+ 2 parent
vendor/twig/twig/test/Twig/Tests/Fixtures/tags/macro/super_globals.test ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ Super globals as macro arguments
3
+ --TEMPLATE--
4
+ {% import _self as macros %}
5
+
6
+ {{ macros.foo('foo') }}
7
+
8
+ {% macro foo(GET) %}
9
+ {{ GET }}
10
+ {% endmacro %}
11
+ --DATA--
12
+ return array()
13
+ --EXPECT--
14
+ foo
vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/inheritance.test ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ "use" tag
3
+ --TEMPLATE--
4
+ {% use "parent.twig" %}
5
+
6
+ {{ block('container') }}
7
+ --TEMPLATE(parent.twig)--
8
+ {% use "ancestor.twig" %}
9
+
10
+ {% block sub_container %}
11
+ <div class="overriden_sub_container">overriden sub_container</div>
12
+ {% endblock %}
13
+ --TEMPLATE(ancestor.twig)--
14
+ {% block container %}
15
+ <div class="container">{{ block('sub_container') }}</div>
16
+ {% endblock %}
17
+
18
+ {% block sub_container %}
19
+ <div class="sub_container">sub_container</div>
20
+ {% endblock %}
21
+ --DATA--
22
+ return array()
23
+ --EXPECT--
24
+ <div class="container"> <div class="overriden_sub_container">overriden sub_container</div>
25
+ </div>
vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/inheritance2.test ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ "use" tag
3
+ --TEMPLATE--
4
+ {% use "ancestor.twig" %}
5
+ {% use "parent.twig" %}
6
+
7
+ {{ block('container') }}
8
+ --TEMPLATE(parent.twig)--
9
+ {% block sub_container %}
10
+ <div class="overriden_sub_container">overriden sub_container</div>
11
+ {% endblock %}
12
+ --TEMPLATE(ancestor.twig)--
13
+ {% block container %}
14
+ <div class="container">{{ block('sub_container') }}</div>
15
+ {% endblock %}
16
+
17
+ {% block sub_container %}
18
+ <div class="sub_container">sub_container</div>
19
+ {% endblock %}
20
+ --DATA--
21
+ return array()
22
+ --EXPECT--
23
+ <div class="container"> <div class="overriden_sub_container">overriden sub_container</div>
24
+ </div>
vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/parent_block.test ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ "use" tag
3
+ --TEMPLATE--
4
+ {% use 'file2.html.twig' with foobar as base_base_foobar %}
5
+ {% block foobar %}
6
+ {{- block('base_base_foobar') -}}
7
+ Content of block (second override)
8
+ {% endblock foobar %}
9
+ --TEMPLATE(file2.html.twig)--
10
+ {% use 'file1.html.twig' with foobar as base_foobar %}
11
+ {% block foobar %}
12
+ {{- block('base_foobar') -}}
13
+ Content of block (first override)
14
+ {% endblock foobar %}
15
+ --TEMPLATE(file1.html.twig)--
16
+ {% block foobar -%}
17
+ Content of block
18
+ {% endblock foobar %}
19
+ --DATA--
20
+ return array()
21
+ --EXPECT--
22
+ Content of block
23
+ Content of block (first override)
24
+ Content of block (second override)
vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/parent_block2.test ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ "use" tag
3
+ --TEMPLATE--
4
+ {% use 'file2.html.twig'%}
5
+ {% block foobar %}
6
+ {{- parent() -}}
7
+ Content of block (second override)
8
+ {% endblock foobar %}
9
+ --TEMPLATE(file2.html.twig)--
10
+ {% use 'file1.html.twig' %}
11
+ {% block foobar %}
12
+ {{- parent() -}}
13
+ Content of block (first override)
14
+ {% endblock foobar %}
15
+ --TEMPLATE(file1.html.twig)--
16
+ {% block foobar -%}
17
+ Content of block
18
+ {% endblock foobar %}
19
+ --DATA--
20
+ return array()
21
+ --EXPECT--
22
+ Content of block
23
+ Content of block (first override)
24
+ Content of block (second override)
vendor/twig/twig/test/Twig/Tests/Fixtures/tags/use/parent_block3.test ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --TEST--
2
+ "use" tag
3
+ --TEMPLATE--
4
+ {% use 'file2.html.twig' %}
5
+ {% use 'file1.html.twig' with foo %}
6
+ {% block foo %}
7
+ {{- parent() -}}
8
+ Content of foo (second override)
9
+ {% endblock foo %}
10
+ {% block bar %}
11
+ {{- parent() -}}
12
+ Content of bar (second override)
13
+ {% endblock bar %}
14
+ --TEMPLATE(file2.html.twig)--
15
+ {% use 'file1.html.twig' %}
16
+ {% block foo %}
17
+ {{- parent() -}}
18
+ Content of foo (first override)
19
+ {% endblock foo %}
20
+ {% block bar %}
21
+ {{- parent() -}}
22
+ Content of bar (first override)
23
+ {% endblock bar %}
24
+ --TEMPLATE(file1.html.twig)--
25
+ {% block foo -%}
26
+ Content of foo
27
+ {% endblock foo %}
28
+ {% block bar -%}
29
+ Content of bar
30
+ {% endblock bar %}
31
+ --DATA--
32
+ return array()
33
+ --EXPECT--
34
+ Content of foo
35
+ Content of foo (first override)
36
+ Content of foo (second override)
37
+ Content of bar
38
+ Content of bar (second override)
vendor/twig/twig/test/Twig/Tests/Fixtures/tests/in.test CHANGED
@@ -50,6 +50,7 @@ TRUE
50
  {{ [] in [true, ''] ? 'TRUE' : 'FALSE' }}
51
  {{ [] in [true, []] ? 'TRUE' : 'FALSE' }}
52
 
 
53
  {{ resource in 'foo'~resource ? 'TRUE' : 'FALSE' }}
54
  {{ object in 'stdClass' ? 'TRUE' : 'FALSE' }}
55
  {{ [] in 'Array' ? 'TRUE' : 'FALSE' }}
@@ -73,7 +74,7 @@ TRUE
73
  {{ 5.5 in '125.5' ? 'TRUE' : 'FALSE' }}
74
  {{ '5.5' in 125.5 ? 'TRUE' : 'FALSE' }}
75
  --DATA--
76
- return array('bar' => 'bar', 'foo' => array('bar' => 'bar'), 'dir_object' => new SplFileInfo(dirname(__FILE__)), 'object' => new stdClass(), 'resource' => fopen(dirname(__FILE__), 'r'))
77
  --EXPECT--
78
  TRUE
79
  TRUE
@@ -102,6 +103,7 @@ TRUE
102
  FALSE
103
  TRUE
104
 
 
105
  FALSE
106
  FALSE
107
  FALSE
50
  {{ [] in [true, ''] ? 'TRUE' : 'FALSE' }}
51
  {{ [] in [true, []] ? 'TRUE' : 'FALSE' }}
52
 
53
+ {{ resource ? 'TRUE' : 'FALSE' }}
54
  {{ resource in 'foo'~resource ? 'TRUE' : 'FALSE' }}
55
  {{ object in 'stdClass' ? 'TRUE' : 'FALSE' }}
56
  {{ [] in 'Array' ? 'TRUE' : 'FALSE' }}
74
  {{ 5.5 in '125.5' ? 'TRUE' : 'FALSE' }}
75
  {{ '5.5' in 125.5 ? 'TRUE' : 'FALSE' }}
76
  --DATA--
77
+ return array('bar' => 'bar', 'foo' => array('bar' => 'bar'), 'dir_object' => new SplFileInfo(dirname(__FILE__)), 'object' => new stdClass(), 'resource' => opendir(dirname(__FILE__)))
78
  --EXPECT--
79
  TRUE
80
  TRUE
103
  FALSE
104
  TRUE
105
 
106
+ TRUE
107
  FALSE
108
  FALSE
109
  FALSE
vendor/twig/twig/test/Twig/Tests/IntegrationTest.php CHANGED
@@ -175,7 +175,7 @@ class TwigTestExtension extends Twig_Extension
175
  }
176
 
177
  /**
178
- * nl2br which also escapes, for testing escaper filters
179
  */
180
  public function escape_and_nl2br($env, $value, $sep = '<br />')
181
  {
@@ -183,7 +183,7 @@ class TwigTestExtension extends Twig_Extension
183
  }
184
 
185
  /**
186
- * nl2br only, for testing filters with pre_escape
187
  */
188
  public function nl2br($value, $sep = '<br />')
189
  {
175
  }
176
 
177
  /**
178
+ * nl2br which also escapes, for testing escaper filters.
179
  */
180
  public function escape_and_nl2br($env, $value, $sep = '<br />')
181
  {
183
  }
184
 
185
  /**
186
+ * nl2br only, for testing filters with pre_escape.
187
  */
188
  public function nl2br($value, $sep = '<br />')
189
  {
vendor/twig/twig/test/Twig/Tests/LexerTest.php CHANGED
@@ -14,7 +14,7 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
14
  {
15
  $template = '{% § %}';
16
 
17
- $lexer = new Twig_Lexer(new Twig_Environment());
18
  $stream = $lexer->tokenize($template);
19
 
20
  $stream->expect(Twig_Token::BLOCK_START_TYPE);
@@ -25,7 +25,7 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
25
  {
26
  $template = '{{ §() }}';
27
 
28
- $lexer = new Twig_Lexer(new Twig_Environment());
29
  $stream = $lexer->tokenize($template);
30
 
31
  $stream->expect(Twig_Token::VAR_START_TYPE);
@@ -42,7 +42,7 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
42
 
43
  protected function countToken($template, $type, $value = null)
44
  {
45
- $lexer = new Twig_Lexer(new Twig_Environment());
46
  $stream = $lexer->tokenize($template);
47
 
48
  $count = 0;
@@ -67,7 +67,7 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
67
  ."baz\n"
68
  ."}}\n";
69
 
70
- $lexer = new Twig_Lexer(new Twig_Environment());
71
  $stream = $lexer->tokenize($template);
72
 
73
  // foo\nbar\n
@@ -87,7 +87,7 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
87
  ."baz\n"
88
  ."}}\n";
89
 
90
- $lexer = new Twig_Lexer(new Twig_Environment());
91
  $stream = $lexer->tokenize($template);
92
 
93
  // foo\nbar
@@ -102,17 +102,17 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
102
  {
103
  $template = '{# '.str_repeat('*', 100000).' #}';
104
 
105
- $lexer = new Twig_Lexer(new Twig_Environment());
106
  $lexer->tokenize($template);
107
 
108
  // should not throw an exception
109
  }
110
 
111
- public function testLongRaw()
112
  {
113
- $template = '{% raw %}'.str_repeat('*', 100000).'{% endraw %}';
114
 
115
- $lexer = new Twig_Lexer(new Twig_Environment());
116
  $lexer->tokenize($template);
117
 
118
  // should not throw an exception
@@ -122,7 +122,7 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
122
  {
123
  $template = '{{ '.str_repeat('x', 100000).' }}';
124
 
125
- $lexer = new Twig_Lexer(new Twig_Environment());
126
  $lexer->tokenize($template);
127
 
128
  // should not throw an exception
@@ -132,7 +132,7 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
132
  {
133
  $template = '{% '.str_repeat('x', 100000).' %}';
134
 
135
- $lexer = new Twig_Lexer(new Twig_Environment());
136
  $lexer->tokenize($template);
137
 
138
  // should not throw an exception
@@ -142,20 +142,20 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
142
  {
143
  $template = '{{ 922337203685477580700 }}';
144
 
145
- $lexer = new Twig_Lexer(new Twig_Environment());
146
  $stream = $lexer->tokenize($template);
 
147
  $node = $stream->next();
148
- $node = $stream->next();
149
- $this->assertEquals("922337203685477580700", $node->getValue());
150
  }
151
 
152
  public function testStringWithEscapedDelimiter()
153
  {
154
  $tests = array(
155
  "{{ 'foo \' bar' }}" => 'foo \' bar',
156
- '{{ "foo \" bar" }}' => "foo \" bar",
157
  );
158
- $lexer = new Twig_Lexer(new Twig_Environment());
159
  foreach ($tests as $template => $expected) {
160
  $stream = $lexer->tokenize($template);
161
  $stream->expect(Twig_Token::VAR_START_TYPE);
@@ -167,7 +167,7 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
167
  {
168
  $template = 'foo {{ "bar #{ baz + 1 }" }}';
169
 
170
- $lexer = new Twig_Lexer(new Twig_Environment());
171
  $stream = $lexer->tokenize($template);
172
  $stream->expect(Twig_Token::TEXT_TYPE, 'foo ');
173
  $stream->expect(Twig_Token::VAR_START_TYPE);
@@ -184,7 +184,7 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
184
  {
185
  $template = '{{ "bar \#{baz+1}" }}';
186
 
187
- $lexer = new Twig_Lexer(new Twig_Environment());
188
  $stream = $lexer->tokenize($template);
189
  $stream->expect(Twig_Token::VAR_START_TYPE);
190
  $stream->expect(Twig_Token::STRING_TYPE, 'bar #{baz+1}');
@@ -195,7 +195,7 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
195
  {
196
  $template = '{{ "bar # baz" }}';
197
 
198
- $lexer = new Twig_Lexer(new Twig_Environment());
199
  $stream = $lexer->tokenize($template);
200
  $stream->expect(Twig_Token::VAR_START_TYPE);
201
  $stream->expect(Twig_Token::STRING_TYPE, 'bar # baz');
@@ -210,7 +210,7 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
210
  {
211
  $template = '{{ "bar #{x" }}';
212
 
213
- $lexer = new Twig_Lexer(new Twig_Environment());
214
  $lexer->tokenize($template);
215
  }
216
 
@@ -218,7 +218,7 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
218
  {
219
  $template = '{{ "bar #{ "foo#{bar}" }" }}';
220
 
221
- $lexer = new Twig_Lexer(new Twig_Environment());
222
  $stream = $lexer->tokenize($template);
223
  $stream->expect(Twig_Token::VAR_START_TYPE);
224
  $stream->expect(Twig_Token::STRING_TYPE, 'bar ');
@@ -235,7 +235,7 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
235
  {
236
  $template = '{% foo "bar #{ "foo#{bar}" }" %}';
237
 
238
- $lexer = new Twig_Lexer(new Twig_Environment());
239
  $stream = $lexer->tokenize($template);
240
  $stream->expect(Twig_Token::BLOCK_START_TYPE);
241
  $stream->expect(Twig_Token::NAME_TYPE, 'foo');
@@ -253,7 +253,7 @@ class Twig_Tests_LexerTest extends PHPUnit_Framework_TestCase
253
  {
254
  $template = "{{ 1 and\n0}}";
255
 
256
- $lexer = new Twig_Lexer(new Twig_Environment());
257
  $stream = $lexer->tokenize($template);
258
  $stream->expect(Twig_Token::VAR_START_TYPE);
259
  $stream->expect(Twig_Token::NUMBER_TYPE, 1);
@@ -275,7 +275,7 @@ bar
275
 
276
  ';
277
 
278
- $lexer = new Twig_Lexer(new Twig_Environment());
279
  $lexer->tokenize($template);
280
  }
281
 
@@ -294,7 +294,7 @@ bar
294
 
295
  ';
296
 
297
- $lexer = new Twig_Lexer(new Twig_Environment());
298
  $lexer->tokenize($template);
299
  }
300
  }
14
  {
15
  $template = '{% § %}';
16
 
17
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
18
  $stream = $lexer->tokenize($template);
19
 
20
  $stream->expect(Twig_Token::BLOCK_START_TYPE);
25
  {
26
  $template = '{{ §() }}';
27
 
28
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
29
  $stream = $lexer->tokenize($template);
30
 
31
  $stream->expect(Twig_Token::VAR_START_TYPE);
42
 
43
  protected function countToken($template, $type, $value = null)
44
  {
45
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
46
  $stream = $lexer->tokenize($template);
47
 
48
  $count = 0;
67
  ."baz\n"
68
  ."}}\n";
69
 
70
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
71
  $stream = $lexer->tokenize($template);
72
 
73
  // foo\nbar\n
87
  ."baz\n"
88
  ."}}\n";
89
 
90
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
91
  $stream = $lexer->tokenize($template);
92
 
93
  // foo\nbar
102
  {
103
  $template = '{# '.str_repeat('*', 100000).' #}';
104
 
105
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
106
  $lexer->tokenize($template);
107
 
108
  // should not throw an exception
109
  }
110
 
111
+ public function testLongVerbatim()
112
  {
113
+ $template = '{% verbatim %}'.str_repeat('*', 100000).'{% endverbatim %}';
114
 
115
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
116
  $lexer->tokenize($template);
117
 
118
  // should not throw an exception
122
  {
123
  $template = '{{ '.str_repeat('x', 100000).' }}';
124
 
125
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
126
  $lexer->tokenize($template);
127
 
128
  // should not throw an exception
132
  {
133
  $template = '{% '.str_repeat('x', 100000).' %}';
134
 
135
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
136
  $lexer->tokenize($template);
137
 
138
  // should not throw an exception
142
  {
143
  $template = '{{ 922337203685477580700 }}';
144
 
145
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
146
  $stream = $lexer->tokenize($template);
147
+ $stream->next();
148
  $node = $stream->next();
149
+ $this->assertEquals('922337203685477580700', $node->getValue());
 
150
  }
151
 
152
  public function testStringWithEscapedDelimiter()
153
  {
154
  $tests = array(
155
  "{{ 'foo \' bar' }}" => 'foo \' bar',
156
+ '{{ "foo \" bar" }}' => 'foo " bar',
157
  );
158
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
159
  foreach ($tests as $template => $expected) {
160
  $stream = $lexer->tokenize($template);
161
  $stream->expect(Twig_Token::VAR_START_TYPE);
167
  {
168
  $template = 'foo {{ "bar #{ baz + 1 }" }}';
169
 
170
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
171
  $stream = $lexer->tokenize($template);
172
  $stream->expect(Twig_Token::TEXT_TYPE, 'foo ');
173
  $stream->expect(Twig_Token::VAR_START_TYPE);
184
  {
185
  $template = '{{ "bar \#{baz+1}" }}';
186
 
187
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
188
  $stream = $lexer->tokenize($template);
189
  $stream->expect(Twig_Token::VAR_START_TYPE);
190
  $stream->expect(Twig_Token::STRING_TYPE, 'bar #{baz+1}');
195
  {
196
  $template = '{{ "bar # baz" }}';
197
 
198
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
199
  $stream = $lexer->tokenize($template);
200
  $stream->expect(Twig_Token::VAR_START_TYPE);
201
  $stream->expect(Twig_Token::STRING_TYPE, 'bar # baz');
210
  {
211
  $template = '{{ "bar #{x" }}';
212
 
213
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
214
  $lexer->tokenize($template);
215
  }
216
 
218
  {
219
  $template = '{{ "bar #{ "foo#{bar}" }" }}';
220
 
221
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
222
  $stream = $lexer->tokenize($template);
223
  $stream->expect(Twig_Token::VAR_START_TYPE);
224
  $stream->expect(Twig_Token::STRING_TYPE, 'bar ');
235
  {
236
  $template = '{% foo "bar #{ "foo#{bar}" }" %}';
237
 
238
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
239
  $stream = $lexer->tokenize($template);
240
  $stream->expect(Twig_Token::BLOCK_START_TYPE);
241
  $stream->expect(Twig_Token::NAME_TYPE, 'foo');
253
  {
254
  $template = "{{ 1 and\n0}}";
255
 
256
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
257
  $stream = $lexer->tokenize($template);
258
  $stream->expect(Twig_Token::VAR_START_TYPE);
259
  $stream->expect(Twig_Token::NUMBER_TYPE, 1);
275
 
276
  ';
277
 
278
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
279
  $lexer->tokenize($template);
280
  }
281
 
294
 
295
  ';
296
 
297
+ $lexer = new Twig_Lexer(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
298
  $lexer->tokenize($template);
299
  }
300
  }
vendor/twig/twig/test/Twig/Tests/Loader/FilesystemTest.php CHANGED
@@ -78,8 +78,8 @@ class Twig_Tests_Loader_FilesystemTest extends PHPUnit_Framework_TestCase
78
  ), $loader->getPaths('named'));
79
 
80
  $this->assertEquals(
81
- $basePath.'/named_quater/named_absolute.html',
82
- $loader->getCacheKey('@named/named_absolute.html')
83
  );
84
  $this->assertEquals("path (final)\n", $loader->getSource('index.html'));
85
  $this->assertEquals("path (final)\n", $loader->getSource('@__main__/index.html'));
78
  ), $loader->getPaths('named'));
79
 
80
  $this->assertEquals(
81
+ realpath($basePath.'/named_quater/named_absolute.html'),
82
+ realpath($loader->getCacheKey('@named/named_absolute.html'))
83
  );
84
  $this->assertEquals("path (final)\n", $loader->getSource('index.html'));
85
  $this->assertEquals("path (final)\n", $loader->getSource('@__main__/index.html'));
vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/array_inheritance_empty_parent.html.twig ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ {% extends ['','parent.html.twig'] %}
2
+
3
+ {% block body %}{{ parent() }} Child{% endblock %}
vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/array_inheritance_nonexistent_parent.html.twig ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ {% extends ['nonexistent.html.twig','parent.html.twig'] %}
2
+
3
+ {% block body %}{{ parent() }} Child{% endblock %}
vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/array_inheritance_null_parent.html.twig ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ {% extends [null,'parent.html.twig'] %}
2
+
3
+ {% block body %}{{ parent() }} Child{% endblock %}
vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/array_inheritance_valid_parent.html.twig ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ {% extends ['parent.html.twig','spare_parent.html.twig'] %}
2
+
3
+ {% block body %}{{ parent() }} Child{% endblock %}
vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/parent.html.twig ADDED
@@ -0,0 +1 @@
 
1
+ {% block body %}VALID{% endblock %}
vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/inheritance/spare_parent.html.twig ADDED
@@ -0,0 +1 @@
 
1
+ {% block body %}SPARE PARENT{% endblock %}
vendor/twig/twig/test/Twig/Tests/Loader/Fixtures/named_quater/named_absolute.html ADDED
@@ -0,0 +1 @@
 
1
+ named path (quater)
vendor/twig/twig/test/Twig/Tests/NativeExtensionTest.php CHANGED
@@ -18,8 +18,8 @@ class Twig_Tests_NativeExtensionTest extends PHPUnit_Framework_TestCase
18
  }
19
 
20
  $twig = new Twig_Environment(new Twig_Loader_Array(array('index' => '{{ d1.date }}{{ d2.date }}')), array(
21
- 'debug' => true,
22
- 'cache' => false,
23
  'autoescape' => false,
24
  ));
25
 
18
  }
19
 
20
  $twig = new Twig_Environment(new Twig_Loader_Array(array('index' => '{{ d1.date }}{{ d2.date }}')), array(
21
+ 'debug' => true,
22
+ 'cache' => false,
23
  'autoescape' => false,
24
  ));
25
 
vendor/twig/twig/test/Twig/Tests/Node/Expression/CallTest.php CHANGED
@@ -73,7 +73,7 @@ class Twig_Tests_Node_Expression_CallTest extends PHPUnit_Framework_TestCase
73
 
74
  public function testResolveArgumentsOnlyNecessaryArgumentsForCustomFunction()
75
  {
76
- $node = new Twig_Tests_Node_Expression_Call(array(), array('type' => 'function', 'name' => 'custom_function'));
77
 
78
  $this->assertEquals(array('arg1'), $node->getArguments(array($this, 'customFunction'), array('arg1' => 'arg1')));
79
  }
@@ -84,6 +84,16 @@ class Twig_Tests_Node_Expression_CallTest extends PHPUnit_Framework_TestCase
84
  $this->assertEquals(array('arg1'), $node->getArguments(__CLASS__.'::customStaticFunction', array('arg1' => 'arg1')));
85
  }
86
 
 
 
 
 
 
 
 
 
 
 
87
  public static function customStaticFunction($arg1, $arg2 = 'default', $arg3 = array())
88
  {
89
  }
@@ -91,6 +101,10 @@ class Twig_Tests_Node_Expression_CallTest extends PHPUnit_Framework_TestCase
91
  public function customFunction($arg1, $arg2 = 'default', $arg3 = array())
92
  {
93
  }
 
 
 
 
94
  }
95
 
96
  class Twig_Tests_Node_Expression_Call extends Twig_Node_Expression_Call
73
 
74
  public function testResolveArgumentsOnlyNecessaryArgumentsForCustomFunction()
75
  {
76
+ $node = new Twig_Tests_Node_Expression_Call(array(), array('type' => 'function', 'name' => 'custom_function'));
77
 
78
  $this->assertEquals(array('arg1'), $node->getArguments(array($this, 'customFunction'), array('arg1' => 'arg1')));
79
  }
84
  $this->assertEquals(array('arg1'), $node->getArguments(__CLASS__.'::customStaticFunction', array('arg1' => 'arg1')));
85
  }
86
 
87
+ /**
88
+ * @expectedException LogicException
89
+ * @expectedExceptionMessage The last parameter of "Twig_Tests_Node_Expression_CallTest::customFunctionWithArbitraryArguments" for function "foo" must be an array with default value, eg. "array $arg = array()".
90
+ */
91
+ public function testResolveArgumentsWithMissingParameterForArbitraryArguments()
92
+ {
93
+ $node = new Twig_Tests_Node_Expression_Call(array(), array('type' => 'function', 'name' => 'foo', 'is_variadic' => true));
94
+ $node->getArguments(array($this, 'customFunctionWithArbitraryArguments'), array());
95
+ }
96
+
97
  public static function customStaticFunction($arg1, $arg2 = 'default', $arg3 = array())
98
  {
99
  }
101
  public function customFunction($arg1, $arg2 = 'default', $arg3 = array())
102
  {
103
  }
104
+
105
+ public function customFunctionWithArbitraryArguments()
106
+ {
107
+ }
108
  }
109
 
110
  class Twig_Tests_Node_Expression_Call extends Twig_Node_Expression_Call
vendor/twig/twig/test/Twig/Tests/Node/Expression/FilterTest.php CHANGED
@@ -25,6 +25,10 @@ class Twig_Tests_Node_Expression_FilterTest extends Twig_Test_NodeTestCase
25
 
26
  public function getTests()
27
  {
 
 
 
 
28
  $tests = array();
29
 
30
  $expr = new Twig_Node_Expression_Constant('foo', 1);
@@ -41,7 +45,7 @@ class Twig_Tests_Node_Expression_FilterTest extends Twig_Test_NodeTestCase
41
  $date = new Twig_Node_Expression_Constant(0, 1);
42
  $node = $this->createFilter($date, 'date', array(
43
  'timezone' => new Twig_Node_Expression_Constant('America/Chicago', 1),
44
- 'format' => new Twig_Node_Expression_Constant('d/m/Y H:i:s P', 1),
45
  ));
46
  $tests[] = array($node, 'twig_date_format_filter($this->env, 0, "d/m/Y H:i:s P", "America/Chicago")');
47
 
@@ -69,6 +73,31 @@ class Twig_Tests_Node_Expression_FilterTest extends Twig_Test_NodeTestCase
69
  $tests[] = array($node, 'call_user_func_array($this->env->getFilter(\'anonymous\')->getCallable(), array("foo"))');
70
  }
71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  return $tests;
73
  }
74
 
@@ -119,3 +148,7 @@ class Twig_Tests_Node_Expression_FilterTest extends Twig_Test_NodeTestCase
119
  return parent::getEnvironment();
120
  }
121
  }
 
 
 
 
25
 
26
  public function getTests()
27
  {
28
+ $environment = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
29
+ $environment->addFilter(new Twig_SimpleFilter('bar', 'bar', array('needs_environment' => true)));
30
+ $environment->addFilter(new Twig_SimpleFilter('barbar', 'twig_tests_filter_barbar', array('needs_context' => true, 'is_variadic' => true)));
31
+
32
  $tests = array();
33
 
34
  $expr = new Twig_Node_Expression_Constant('foo', 1);
45
  $date = new Twig_Node_Expression_Constant(0, 1);
46
  $node = $this->createFilter($date, 'date', array(
47
  'timezone' => new Twig_Node_Expression_Constant('America/Chicago', 1),
48
+ 'format' => new Twig_Node_Expression_Constant('d/m/Y H:i:s P', 1),
49
  ));
50
  $tests[] = array($node, 'twig_date_format_filter($this->env, 0, "d/m/Y H:i:s P", "America/Chicago")');
51
 
73
  $tests[] = array($node, 'call_user_func_array($this->env->getFilter(\'anonymous\')->getCallable(), array("foo"))');
74
  }
75
 
76
+ // needs environment
77
+ $node = $this->createFilter($string, 'bar');
78
+ $tests[] = array($node, 'bar($this->env, "abc")', $environment);
79
+
80
+ $node = $this->createFilter($string, 'bar', array(new Twig_Node_Expression_Constant('bar', 1)));
81
+ $tests[] = array($node, 'bar($this->env, "abc", "bar")', $environment);
82
+
83
+ // arbitrary named arguments
84
+ $node = $this->createFilter($string, 'barbar');
85
+ $tests[] = array($node, 'twig_tests_filter_barbar($context, "abc")', $environment);
86
+
87
+ $node = $this->createFilter($string, 'barbar', array('foo' => new Twig_Node_Expression_Constant('bar', 1)));
88
+ $tests[] = array($node, 'twig_tests_filter_barbar($context, "abc", null, null, array("foo" => "bar"))', $environment);
89
+
90
+ $node = $this->createFilter($string, 'barbar', array('arg2' => new Twig_Node_Expression_Constant('bar', 1)));
91
+ $tests[] = array($node, 'twig_tests_filter_barbar($context, "abc", null, "bar")', $environment);
92
+
93
+ $node = $this->createFilter($string, 'barbar', array(
94
+ new Twig_Node_Expression_Constant('1', 1),
95
+ new Twig_Node_Expression_Constant('2', 1),
96
+ new Twig_Node_Expression_Constant('3', 1),
97
+ 'foo' => new Twig_Node_Expression_Constant('bar', 1),
98
+ ));
99
+ $tests[] = array($node, 'twig_tests_filter_barbar($context, "abc", "1", "2", array(0 => "3", "foo" => "bar"))', $environment);
100
+
101
  return $tests;
102
  }
103
 
148
  return parent::getEnvironment();
149
  }
150
  }
151
+
152
+ function twig_tests_filter_barbar($context, $string, $arg1 = null, $arg2 = null, array $args = array())
153
+ {
154
+ }
vendor/twig/twig/test/Twig/Tests/Node/Expression/FunctionTest.php CHANGED
@@ -23,11 +23,12 @@ class Twig_Tests_Node_Expression_FunctionTest extends Twig_Test_NodeTestCase
23
 
24
  public function getTests()
25
  {
26
- $environment = new Twig_Environment();
27
  $environment->addFunction(new Twig_SimpleFunction('foo', 'foo', array()));
28
  $environment->addFunction(new Twig_SimpleFunction('bar', 'bar', array('needs_environment' => true)));
29
  $environment->addFunction(new Twig_SimpleFunction('foofoo', 'foofoo', array('needs_context' => true)));
30
  $environment->addFunction(new Twig_SimpleFunction('foobar', 'foobar', array('needs_environment' => true, 'needs_context' => true)));
 
31
 
32
  $tests = array();
33
 
@@ -58,10 +59,28 @@ class Twig_Tests_Node_Expression_FunctionTest extends Twig_Test_NodeTestCase
58
  // named arguments
59
  $node = $this->createFunction('date', array(
60
  'timezone' => new Twig_Node_Expression_Constant('America/Chicago', 1),
61
- 'date' => new Twig_Node_Expression_Constant(0, 1),
62
  ));
63
  $tests[] = array($node, 'twig_date_converter($this->env, 0, "America/Chicago")');
64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  // function as an anonymous function
66
  if (PHP_VERSION_ID >= 50300) {
67
  $node = $this->createFunction('anonymous', array(new Twig_Node_Expression_Constant('foo', 1)));
@@ -85,3 +104,7 @@ class Twig_Tests_Node_Expression_FunctionTest extends Twig_Test_NodeTestCase
85
  return parent::getEnvironment();
86
  }
87
  }
 
 
 
 
23
 
24
  public function getTests()
25
  {
26
+ $environment = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
27
  $environment->addFunction(new Twig_SimpleFunction('foo', 'foo', array()));
28
  $environment->addFunction(new Twig_SimpleFunction('bar', 'bar', array('needs_environment' => true)));
29
  $environment->addFunction(new Twig_SimpleFunction('foofoo', 'foofoo', array('needs_context' => true)));
30
  $environment->addFunction(new Twig_SimpleFunction('foobar', 'foobar', array('needs_environment' => true, 'needs_context' => true)));
31
+ $environment->addFunction(new Twig_SimpleFunction('barbar', 'twig_tests_function_barbar', array('is_variadic' => true)));
32
 
33
  $tests = array();
34
 
59
  // named arguments
60
  $node = $this->createFunction('date', array(
61
  'timezone' => new Twig_Node_Expression_Constant('America/Chicago', 1),
62
+ 'date' => new Twig_Node_Expression_Constant(0, 1),
63
  ));
64
  $tests[] = array($node, 'twig_date_converter($this->env, 0, "America/Chicago")');
65
 
66
+ // arbitrary named arguments
67
+ $node = $this->createFunction('barbar');
68
+ $tests[] = array($node, 'twig_tests_function_barbar()', $environment);
69
+
70
+ $node = $this->createFunction('barbar', array('foo' => new Twig_Node_Expression_Constant('bar', 1)));
71
+ $tests[] = array($node, 'twig_tests_function_barbar(null, null, array("foo" => "bar"))', $environment);
72
+
73
+ $node = $this->createFunction('barbar', array('arg2' => new Twig_Node_Expression_Constant('bar', 1)));
74
+ $tests[] = array($node, 'twig_tests_function_barbar(null, "bar")', $environment);
75
+
76
+ $node = $this->createFunction('barbar', array(
77
+ new Twig_Node_Expression_Constant('1', 1),
78
+ new Twig_Node_Expression_Constant('2', 1),
79
+ new Twig_Node_Expression_Constant('3', 1),
80
+ 'foo' => new Twig_Node_Expression_Constant('bar', 1),
81
+ ));
82
+ $tests[] = array($node, 'twig_tests_function_barbar("1", "2", array(0 => "3", "foo" => "bar"))', $environment);
83
+
84
  // function as an anonymous function
85
  if (PHP_VERSION_ID >= 50300) {
86
  $node = $this->createFunction('anonymous', array(new Twig_Node_Expression_Constant('foo', 1)));
104
  return parent::getEnvironment();
105
  }
106
  }
107
+
108
+ function twig_tests_function_barbar($arg1 = null, $arg2 = null, array $args = array())
109
+ {
110
+ }
vendor/twig/twig/test/Twig/Tests/Node/Expression/NameTest.php CHANGED
@@ -21,16 +21,14 @@ class Twig_Tests_Node_Expression_NameTest extends Twig_Test_NodeTestCase
21
  public function getTests()
22
  {
23
  $node = new Twig_Node_Expression_Name('foo', 1);
24
- $self = new Twig_Node_Expression_Name('_self', 1);
25
  $context = new Twig_Node_Expression_Name('_context', 1);
26
 
27
- $env = new Twig_Environment(null, array('strict_variables' => true));
28
- $env1 = new Twig_Environment(null, array('strict_variables' => false));
29
 
30
  return array(
31
  array($node, "// line 1\n".(PHP_VERSION_ID >= 50400 ? '(isset($context["foo"]) ? $context["foo"] : $this->getContext($context, "foo"))' : '$this->getContext($context, "foo")'), $env),
32
  array($node, $this->getVariableGetter('foo', 1), $env1),
33
- array($self, "// line 1\n\$this"),
34
  array($context, "// line 1\n\$context"),
35
  );
36
  }
21
  public function getTests()
22
  {
23
  $node = new Twig_Node_Expression_Name('foo', 1);
 
24
  $context = new Twig_Node_Expression_Name('_context', 1);
25
 
26
+ $env = new Twig_Environment($this->getMock('Twig_LoaderInterface'), array('strict_variables' => true));
27
+ $env1 = new Twig_Environment($this->getMock('Twig_LoaderInterface'), array('strict_variables' => false));
28
 
29
  return array(
30
  array($node, "// line 1\n".(PHP_VERSION_ID >= 50400 ? '(isset($context["foo"]) ? $context["foo"] : $this->getContext($context, "foo"))' : '$this->getContext($context, "foo")'), $env),
31
  array($node, $this->getVariableGetter('foo', 1), $env1),
 
32
  array($context, "// line 1\n\$context"),
33
  );
34
  }
vendor/twig/twig/test/Twig/Tests/Node/Expression/PHP53/FilterInclude.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- $env = new Twig_Environment();
4
  $env->addFilter(new Twig_SimpleFilter('anonymous', function () {}));
5
 
6
  return $env;
1
  <?php
2
 
3
+ $env = new Twig_Environment(new Twig_Loader_Array(array()));
4
  $env->addFilter(new Twig_SimpleFilter('anonymous', function () {}));
5
 
6
  return $env;
vendor/twig/twig/test/Twig/Tests/Node/Expression/PHP53/FunctionInclude.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- $env = new Twig_Environment();
4
  $env->addFunction(new Twig_SimpleFunction('anonymous', function () {}));
5
 
6
  return $env;
1
  <?php
2
 
3
+ $env = new Twig_Environment(new Twig_Loader_Array(array()));
4
  $env->addFunction(new Twig_SimpleFunction('anonymous', function () {}));
5
 
6
  return $env;
vendor/twig/twig/test/Twig/Tests/Node/Expression/PHP53/TestInclude.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
- $env = new Twig_Environment();
4
  $env->addTest(new Twig_SimpleTest('anonymous', function () {}));
5
 
6
  return $env;
1
  <?php
2
 
3
+ $env = new Twig_Environment(new Twig_Loader_Array(array()));
4
  $env->addTest(new Twig_SimpleTest('anonymous', function () {}));
5
 
6
  return $env;
vendor/twig/twig/test/Twig/Tests/Node/Expression/TestTest.php CHANGED
@@ -25,6 +25,9 @@ class Twig_Tests_Node_Expression_TestTest extends Twig_Test_NodeTestCase
25
 
26
  public function getTests()
27
  {
 
 
 
28
  $tests = array();
29
 
30
  $expr = new Twig_Node_Expression_Constant('foo', 1);
@@ -37,6 +40,25 @@ class Twig_Tests_Node_Expression_TestTest extends Twig_Test_NodeTestCase
37
  $tests[] = array($node, 'call_user_func_array($this->env->getTest(\'anonymous\')->getCallable(), array("foo", "foo"))');
38
  }
39
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
40
  return $tests;
41
  }
42
 
@@ -54,3 +76,7 @@ class Twig_Tests_Node_Expression_TestTest extends Twig_Test_NodeTestCase
54
  return parent::getEnvironment();
55
  }
56
  }
 
 
 
 
25
 
26
  public function getTests()
27
  {
28
+ $environment = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
29
+ $environment->addTest(new Twig_SimpleTest('barbar', 'twig_tests_test_barbar', array('is_variadic' => true, 'need_context' => true)));
30
+
31
  $tests = array();
32
 
33
  $expr = new Twig_Node_Expression_Constant('foo', 1);
40
  $tests[] = array($node, 'call_user_func_array($this->env->getTest(\'anonymous\')->getCallable(), array("foo", "foo"))');
41
  }
42
 
43
+ // arbitrary named arguments
44
+ $string = new Twig_Node_Expression_Constant('abc', 1);
45
+ $node = $this->createTest($string, 'barbar');
46
+ $tests[] = array($node, 'twig_tests_test_barbar("abc")', $environment);
47
+
48
+ $node = $this->createTest($string, 'barbar', array('foo' => new Twig_Node_Expression_Constant('bar', 1)));
49
+ $tests[] = array($node, 'twig_tests_test_barbar("abc", null, null, array("foo" => "bar"))', $environment);
50
+
51
+ $node = $this->createTest($string, 'barbar', array('arg2' => new Twig_Node_Expression_Constant('bar', 1)));
52
+ $tests[] = array($node, 'twig_tests_test_barbar("abc", null, "bar")', $environment);
53
+
54
+ $node = $this->createTest($string, 'barbar', array(
55
+ new Twig_Node_Expression_Constant('1', 1),
56
+ new Twig_Node_Expression_Constant('2', 1),
57
+ new Twig_Node_Expression_Constant('3', 1),
58
+ 'foo' => new Twig_Node_Expression_Constant('bar', 1),
59
+ ));
60
+ $tests[] = array($node, 'twig_tests_test_barbar("abc", "1", "2", array(0 => "3", "foo" => "bar"))', $environment);
61
+
62
  return $tests;
63
  }
64
 
76
  return parent::getEnvironment();
77
  }
78
  }
79
+
80
+ function twig_tests_test_barbar($string, $arg1 = null, $arg2 = null, array $args = array())
81
+ {
82
+ }
vendor/twig/twig/test/Twig/Tests/Node/MacroTest.php CHANGED
@@ -31,14 +31,23 @@ class Twig_Tests_Node_MacroTest extends Twig_Test_NodeTestCase
31
  ), array(), 1);
32
  $node = new Twig_Node_Macro('foo', $body, $arguments, 1);
33
 
 
 
 
 
 
 
 
 
34
  return array(
35
  array($node, <<<EOF
36
  // line 1
37
- public function getfoo(\$__foo__ = null, \$__bar__ = "Foo")
38
  {
39
  \$context = \$this->env->mergeGlobals(array(
40
  "foo" => \$__foo__,
41
  "bar" => \$__bar__,
 
42
  ));
43
 
44
  \$blocks = array();
31
  ), array(), 1);
32
  $node = new Twig_Node_Macro('foo', $body, $arguments, 1);
33
 
34
+ if (PHP_VERSION_ID >= 50600) {
35
+ $declaration = ', ...$__varargs__';
36
+ $varargs = '$__varargs__';
37
+ } else {
38
+ $declaration = '';
39
+ $varargs = 'func_num_args() > 2 ? array_slice(func_get_args(), 2) : array()';
40
+ }
41
+
42
  return array(
43
  array($node, <<<EOF
44
  // line 1
45
+ public function getfoo(\$__foo__ = null, \$__bar__ = "Foo"$declaration)
46
  {
47
  \$context = \$this->env->mergeGlobals(array(
48
  "foo" => \$__foo__,
49
  "bar" => \$__bar__,
50
+ "varargs" => $varargs,
51
  ));
52
 
53
  \$blocks = array();
vendor/twig/twig/test/Twig/Tests/Node/ModuleTest.php CHANGED
@@ -130,7 +130,7 @@ class __TwigTemplate_e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b785
130
  EOF
131
  , $twig);
132
 
133
- $set = new Twig_Node_Set(false, new Twig_Node(array(new Twig_Node_Expression_AssignName('foo', 4))), new Twig_Node(array(new Twig_Node_Expression_Constant("foo", 4))), 4);
134
  $body = new Twig_Node(array($set));
135
  $extends = new Twig_Node_Expression_Conditional(
136
  new Twig_Node_Expression_Constant(true, 2),
130
  EOF
131
  , $twig);
132
 
133
+ $set = new Twig_Node_Set(false, new Twig_Node(array(new Twig_Node_Expression_AssignName('foo', 4))), new Twig_Node(array(new Twig_Node_Expression_Constant('foo', 4))), 4);
134
  $body = new Twig_Node(array($set));
135
  $extends = new Twig_Node_Expression_Conditional(
136
  new Twig_Node_Expression_Constant(true, 2),
vendor/twig/twig/test/Twig/Tests/Node/SandboxedModuleTest.php DELETED
@@ -1,173 +0,0 @@
1
- <?php
2
-
3
- /*
4
- * This file is part of Twig.
5
- *
6
- * (c) Fabien Potencier
7
- *
8
- * For the full copyright and license information, please view the LICENSE
9
- * file that was distributed with this source code.
10
- */
11
-
12
- class Twig_Tests_Node_SandboxedModuleTest extends Twig_Test_NodeTestCase
13
- {
14
- /**
15
- * @covers Twig_Node_SandboxedModule::__construct
16
- */
17
- public function testConstructor()
18
- {
19
- $body = new Twig_Node_Text('foo', 1);
20
- $parent = new Twig_Node_Expression_Constant('layout.twig', 1);
21
- $blocks = new Twig_Node();
22
- $macros = new Twig_Node();
23
- $traits = new Twig_Node();
24
- $filename = 'foo.twig';
25
- $node = new Twig_Node_Module($body, $parent, $blocks, $macros, $traits, new Twig_Node(array()), $filename);
26
- $node = new Twig_Node_SandboxedModule($node, array('for'), array('upper'), array('cycle'));
27
-
28
- $this->assertEquals($body, $node->getNode('body'));
29
- $this->assertEquals($blocks, $node->getNode('blocks'));
30
- $this->assertEquals($macros, $node->getNode('macros'));
31
- $this->assertEquals($parent, $node->getNode('parent'));
32
- $this->assertEquals($filename, $node->getAttribute('filename'));
33
- }
34
-
35
- /**
36
- * @covers Twig_Node_SandboxedModule::compile
37
- * @covers Twig_Node_SandboxedModule::compileDisplayBody
38
- * @covers Twig_Node_SandboxedModule::compileDisplayFooter
39
- * @dataProvider getTests
40
- */
41
- public function testCompile($node, $source, $environment = null)
42
- {
43
- parent::testCompile($node, $source, $environment);
44
- }
45
-
46
- public function getTests()
47
- {
48
- $twig = new Twig_Environment(new Twig_Loader_String());
49
-
50
- $tests = array();
51
-
52
- $body = new Twig_Node_Text('foo', 1);
53
- $extends = null;
54
- $blocks = new Twig_Node();
55
- $macros = new Twig_Node();
56
- $traits = new Twig_Node();
57
- $filename = 'foo.twig';
58
-
59
- $node = new Twig_Node_Module($body, $extends, $blocks, $macros, $traits, new Twig_Node(array()), $filename);
60
- $node = new Twig_Node_SandboxedModule($node, array('for'), array('upper'), array('cycle'));
61
-
62
- $tests[] = array($node, <<<EOF
63
- <?php
64
-
65
- /* foo.twig */
66
- class __TwigTemplate_a2bfbf7dd6ab85666684fe9297f69363a3fc2046d90f22a317d380c18638df0d extends Twig_Template
67
- {
68
- public function __construct(Twig_Environment \$env)
69
- {
70
- parent::__construct(\$env);
71
-
72
- \$this->parent = false;
73
-
74
- \$this->blocks = array(
75
- );
76
- }
77
-
78
- protected function doDisplay(array \$context, array \$blocks = array())
79
- {
80
- \$this->checkSecurity();
81
- // line 1
82
- echo "foo";
83
- }
84
-
85
- protected function checkSecurity()
86
- {
87
- \$this->env->getExtension('sandbox')->checkSecurity(
88
- array('upper'),
89
- array('for'),
90
- array('cycle')
91
- );
92
- }
93
-
94
- public function getTemplateName()
95
- {
96
- return "foo.twig";
97
- }
98
-
99
- public function getDebugInfo()
100
- {
101
- return array ( 20 => 1,);
102
- }
103
- }
104
- EOF
105
- , $twig);
106
-
107
- $body = new Twig_Node();
108
- $extends = new Twig_Node_Expression_Constant('layout.twig', 1);
109
- $blocks = new Twig_Node();
110
- $macros = new Twig_Node();
111
- $traits = new Twig_Node();
112
- $filename = 'foo.twig';
113
-
114
- $node = new Twig_Node_Module($body, $extends, $blocks, $macros, $traits, new Twig_Node(array()), $filename);
115
- $node = new Twig_Node_SandboxedModule($node, array('for'), array('upper'), array('cycle'));
116
-
117
- $tests[] = array($node, <<<EOF
118
- <?php
119
-
120
- /* foo.twig */
121
- class __TwigTemplate_a2bfbf7dd6ab85666684fe9297f69363a3fc2046d90f22a317d380c18638df0d extends Twig_Template
122
- {
123
- public function __construct(Twig_Environment \$env)
124
- {
125
- parent::__construct(\$env);
126
-
127
- \$this->parent = \$this->env->loadTemplate("layout.twig");
128
-
129
- \$this->blocks = array(
130
- );
131
- }
132
-
133
- protected function doGetParent(array \$context)
134
- {
135
- return "layout.twig";
136
- }
137
-
138
- protected function doDisplay(array \$context, array \$blocks = array())
139
- {
140
- \$this->checkSecurity();
141
- \$this->parent->display(\$context, array_merge(\$this->blocks, \$blocks));
142
- }
143
-
144
- protected function checkSecurity()
145
- {
146
- \$this->env->getExtension('sandbox')->checkSecurity(
147
- array('upper'),
148
- array('for'),
149
- array('cycle')
150
- );
151
- }
152
-
153
- public function getTemplateName()
154
- {
155
- return "foo.twig";
156
- }
157
-
158
- public function isTraitable()
159
- {
160
- return false;
161
- }
162
-
163
- public function getDebugInfo()
164
- {
165
- return array ();
166
- }
167
- }
168
- EOF
169
- , $twig);
170
-
171
- return $tests;
172
- }
173
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
vendor/twig/twig/test/Twig/Tests/ParserTest.php CHANGED
@@ -16,7 +16,7 @@ class Twig_Tests_ParserTest extends PHPUnit_Framework_TestCase
16
  public function testSetMacroThrowsExceptionOnReservedMethods()
17
  {
18
  $parser = $this->getParser();
19
- $parser->setMacro('display', $this->getMock('Twig_Node_Macro', array(), array(), '', null));
20
  }
21
 
22
  /**
@@ -31,7 +31,7 @@ class Twig_Tests_ParserTest extends PHPUnit_Framework_TestCase
31
  new Twig_Token(Twig_Token::BLOCK_END_TYPE, '', 1),
32
  new Twig_Token(Twig_Token::EOF_TYPE, '', 1),
33
  ));
34
- $parser = new Twig_Parser(new Twig_Environment());
35
  $parser->parse($stream);
36
  }
37
 
@@ -94,7 +94,7 @@ class Twig_Tests_ParserTest extends PHPUnit_Framework_TestCase
94
 
95
  public function testParseIsReentrant()
96
  {
97
- $twig = new Twig_Environment(null, array(
98
  'autoescape' => false,
99
  'optimizations' => 0,
100
  ));
@@ -120,7 +120,7 @@ class Twig_Tests_ParserTest extends PHPUnit_Framework_TestCase
120
  // see https://github.com/symfony/symfony/issues/4218
121
  public function testGetVarName()
122
  {
123
- $twig = new Twig_Environment(null, array(
124
  'autoescape' => false,
125
  'optimizations' => 0,
126
  ));
@@ -137,7 +137,7 @@ EOF
137
 
138
  protected function getParser()
139
  {
140
- $parser = new TestParser(new Twig_Environment());
141
  $parser->setParent(new Twig_Node());
142
  $parser->stream = $this->getMockBuilder('Twig_TokenStream')->disableOriginalConstructor()->getMock();
143
 
16
  public function testSetMacroThrowsExceptionOnReservedMethods()
17
  {
18
  $parser = $this->getParser();
19
+ $parser->setMacro('parent', $this->getMock('Twig_Node_Macro', array(), array(), '', null));
20
  }
21
 
22
  /**
31
  new Twig_Token(Twig_Token::BLOCK_END_TYPE, '', 1),
32
  new Twig_Token(Twig_Token::EOF_TYPE, '', 1),
33
  ));
34
+ $parser = new Twig_Parser(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
35
  $parser->parse($stream);
36
  }
37
 
94
 
95
  public function testParseIsReentrant()
96
  {
97
+ $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'), array(
98
  'autoescape' => false,
99
  'optimizations' => 0,
100
  ));
120
  // see https://github.com/symfony/symfony/issues/4218
121
  public function testGetVarName()
122
  {
123
+ $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'), array(
124
  'autoescape' => false,
125
  'optimizations' => 0,
126
  ));
137
 
138
  protected function getParser()
139
  {
140
+ $parser = new TestParser(new Twig_Environment($this->getMock('Twig_LoaderInterface')));
141
  $parser->setParent(new Twig_Node());
142
  $parser->stream = $this->getMockBuilder('Twig_TokenStream')->disableOriginalConstructor()->getMock();
143
 
vendor/twig/twig/test/Twig/Tests/Profiler/Dumper/AbstractTest.php CHANGED
@@ -13,32 +13,88 @@ abstract class Twig_Tests_Profiler_Dumper_AbstractTest extends PHPUnit_Framework
13
  {
14
  protected function getProfile()
15
  {
16
- $profile = new Twig_Profiler_Profile();
17
- $index = new Twig_Profiler_Profile('index.twig', Twig_Profiler_Profile::TEMPLATE);
18
- $profile->addProfile($index);
19
- $body = new Twig_Profiler_Profile('embedded.twig', Twig_Profiler_Profile::BLOCK, 'body');
20
- $body->leave();
21
- $index->addProfile($body);
22
- $embedded = new Twig_Profiler_Profile('embedded.twig', Twig_Profiler_Profile::TEMPLATE);
23
- $included = new Twig_Profiler_Profile('included.twig', Twig_Profiler_Profile::TEMPLATE);
24
- $embedded->addProfile($included);
25
- $index->addProfile($embedded);
26
- $included->leave();
27
- $embedded->leave();
28
-
29
- $macro = new Twig_Profiler_Profile('index.twig', Twig_Profiler_Profile::MACRO, 'foo');
30
- $macro->leave();
31
- $index->addProfile($macro);
32
-
33
- $embedded = clone $embedded;
34
- $index->addProfile($embedded);
35
- usleep(500);
36
- $embedded->leave();
37
-
38
- usleep(4500);
39
- $index->leave();
40
-
41
- $profile->leave();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
 
43
  return $profile;
44
  }
13
  {
14
  protected function getProfile()
15
  {
16
+ $profile = $this->getMockBuilder('Twig_Profiler_Profile')->disableOriginalConstructor()->getMock();
17
+
18
+ $profile->expects($this->any())->method('isRoot')->will($this->returnValue(true));
19
+ $profile->expects($this->any())->method('getName')->will($this->returnValue('main'));
20
+ $profile->expects($this->any())->method('getDuration')->will($this->returnValue(1));
21
+ $profile->expects($this->any())->method('getMemoryUsage')->will($this->returnValue(0));
22
+ $profile->expects($this->any())->method('getPeakMemoryUsage')->will($this->returnValue(0));
23
+
24
+ $subProfiles = array(
25
+ $this->getIndexProfile(
26
+ array(
27
+ $this->getEmbeddedBlockProfile(),
28
+ $this->getEmbeddedTemplateProfile(
29
+ array(
30
+ $this->getIncludedTemplateProfile(),
31
+ )
32
+ ),
33
+ $this->getMacroProfile(),
34
+ $this->getEmbeddedTemplateProfile(
35
+ array(
36
+ $this->getIncludedTemplateProfile(),
37
+ )
38
+ ),
39
+ )
40
+ ),
41
+ );
42
+
43
+ $profile->expects($this->any())->method('getProfiles')->will($this->returnValue($subProfiles));
44
+ $profile->expects($this->any())->method('getIterator')->will($this->returnValue(new ArrayIterator($subProfiles)));
45
+
46
+ return $profile;
47
+ }
48
+
49
+ private function getIndexProfile(array $subProfiles = array())
50
+ {
51
+ return $this->generateProfile('main', 1, true, 'template', 'index.twig', $subProfiles);
52
+ }
53
+
54
+ private function getEmbeddedBlockProfile(array $subProfiles = array())
55
+ {
56
+ return $this->generateProfile('body', 0.0001, false, 'block', 'embedded.twig', $subProfiles);
57
+ }
58
+
59
+ private function getEmbeddedTemplateProfile(array $subProfiles = array())
60
+ {
61
+ return $this->generateProfile('main', 0.0001, true, 'template', 'embedded.twig', $subProfiles);
62
+ }
63
+
64
+ private function getIncludedTemplateProfile(array $subProfiles = array())
65
+ {
66
+ return $this->generateProfile('main', 0.0001, true, 'template', 'included.twig', $subProfiles);
67
+ }
68
+
69
+ private function getMacroProfile(array $subProfiles = array())
70
+ {
71
+ return $this->generateProfile('foo', 0.0001, false, 'macro', 'index.twig', $subProfiles);
72
+ }
73
+
74
+ /**
75
+ * @param string $name
76
+ * @param float $duration
77
+ * @param bool $isTemplate
78
+ * @param string $type
79
+ * @param string $templateName
80
+ * @param array $subProfiles
81
+ *
82
+ * @return Twig_Profiler_Profile
83
+ */
84
+ private function generateProfile($name, $duration, $isTemplate, $type, $templateName, array $subProfiles = array())
85
+ {
86
+ $profile = $this->getMockBuilder('Twig_Profiler_Profile')->disableOriginalConstructor()->getMock();
87
+
88
+ $profile->expects($this->any())->method('isRoot')->will($this->returnValue(false));
89
+ $profile->expects($this->any())->method('getName')->will($this->returnValue($name));
90
+ $profile->expects($this->any())->method('getDuration')->will($this->returnValue($duration));
91
+ $profile->expects($this->any())->method('getMemoryUsage')->will($this->returnValue(0));
92
+ $profile->expects($this->any())->method('getPeakMemoryUsage')->will($this->returnValue(0));
93
+ $profile->expects($this->any())->method('isTemplate')->will($this->returnValue($isTemplate));
94
+ $profile->expects($this->any())->method('getType')->will($this->returnValue($type));
95
+ $profile->expects($this->any())->method('getTemplate')->will($this->returnValue($templateName));
96
+ $profile->expects($this->any())->method('getProfiles')->will($this->returnValue($subProfiles));
97
+ $profile->expects($this->any())->method('getIterator')->will($this->returnValue(new ArrayIterator($subProfiles)));
98
 
99
  return $profile;
100
  }
vendor/twig/twig/test/Twig/Tests/TemplateTest.php CHANGED
@@ -10,6 +10,15 @@
10
  */
11
  class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
12
  {
 
 
 
 
 
 
 
 
 
13
  /**
14
  * @dataProvider getAttributeExceptions
15
  */
@@ -27,12 +36,13 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
27
  $template = $env->loadTemplate($name);
28
 
29
  $context = array(
30
- 'string' => 'foo',
31
- 'empty_array' => array(),
32
- 'array' => array('foo' => 'foo'),
33
- 'array_access' => new Twig_TemplateArrayAccessObject(),
 
34
  'magic_exception' => new Twig_TemplateMagicPropertyObjectWithException(),
35
- 'object' => new stdClass(),
36
  );
37
 
38
  try {
@@ -47,16 +57,19 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
47
  {
48
  $tests = array(
49
  array('{{ string["a"] }}', 'Impossible to access a key ("a") on a string variable ("foo") in "%s" at line 1', false),
 
50
  array('{{ empty_array["a"] }}', 'Key "a" does not exist as the array is empty in "%s" at line 1', false),
51
  array('{{ array["a"] }}', 'Key "a" for array with keys "foo" does not exist in "%s" at line 1', false),
52
  array('{{ array_access["a"] }}', 'Key "a" in object with ArrayAccess of class "Twig_TemplateArrayAccessObject" does not exist in "%s" at line 1', false),
53
  array('{{ string.a }}', 'Impossible to access an attribute ("a") on a string variable ("foo") in "%s" at line 1', false),
54
  array('{{ string.a() }}', 'Impossible to invoke a method ("a") on a string variable ("foo") in "%s" at line 1', false),
 
 
55
  array('{{ empty_array.a }}', 'Key "a" does not exist as the array is empty in "%s" at line 1', false),
56
  array('{{ array.a }}', 'Key "a" for array with keys "foo" does not exist in "%s" at line 1', false),
57
  array('{{ attribute(array, -10) }}', 'Key "-10" for array with keys "foo" does not exist in "%s" at line 1', false),
58
  array('{{ array_access.a }}', 'Method "a" for object "Twig_TemplateArrayAccessObject" does not exist in "%s" at line 1', false),
59
- array('{% macro foo(obj) %}{{ obj.missing_method() }}{% endmacro %}{{ _self.foo(array_access) }}', 'Method "missing_method" for object "Twig_TemplateArrayAccessObject" does not exist in "%s" at line 1', false),
60
  array('{{ magic_exception.test }}', 'An exception has been thrown during the rendering of a template ("Hey! Don\'t try to isset me!") in "%s" at line 1.', false),
61
  array('{{ object["a"] }}', 'Impossible to access a key "a" on an object of class "stdClass" that does not implement ArrayAccess interface in "%s" at line 1', false),
62
  );
@@ -76,7 +89,7 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
76
  */
77
  public function testGetAttributeWithSandbox($object, $item, $allowed, $useExt)
78
  {
79
- $twig = new Twig_Environment();
80
  $policy = new Twig_Sandbox_SecurityPolicy(array(), array(), array(/*method*/), array(/*prop*/), array());
81
  $twig->addExtension(new Twig_Extension_Sandbox($policy, !$allowed));
82
  $template = new Twig_TemplateTest($twig, $useExt);
@@ -120,8 +133,8 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
120
  */
121
  public function testGetAttributeWithTemplateAsObject($useExt)
122
  {
123
- $template = new Twig_TemplateTest(new Twig_Environment(), $useExt);
124
- $template1 = new Twig_TemplateTest(new Twig_Environment(), false);
125
 
126
  $this->assertInstanceof('Twig_Markup', $template->getAttribute($template1, 'string'));
127
  $this->assertEquals('some_string', $template->getAttribute($template1, 'string'));
@@ -134,6 +147,11 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
134
 
135
  $this->assertNotInstanceof('Twig_Markup', $template->getAttribute($template1, 'empty'));
136
  $this->assertSame('', $template->getAttribute($template1, 'empty'));
 
 
 
 
 
137
  }
138
 
139
  public function getGetAttributeWithTemplateAsObject()
@@ -155,7 +173,7 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
155
  public function testGetAttributeOnArrayWithConfusableKey($useExt = false)
156
  {
157
  $template = new Twig_TemplateTest(
158
- new Twig_Environment(),
159
  $useExt
160
  );
161
 
@@ -194,7 +212,7 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
194
  */
195
  public function testGetAttribute($defined, $value, $object, $item, $arguments, $type, $useExt = false)
196
  {
197
- $template = new Twig_TemplateTest(new Twig_Environment(), $useExt);
198
 
199
  $this->assertEquals($value, $template->getAttribute($object, $item, $arguments, $type));
200
  }
@@ -204,7 +222,7 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
204
  */
205
  public function testGetAttributeStrict($defined, $value, $object, $item, $arguments, $type, $useExt = false, $exceptionMessage = null)
206
  {
207
- $template = new Twig_TemplateTest(new Twig_Environment(null, array('strict_variables' => true)), $useExt);
208
 
209
  if ($defined) {
210
  $this->assertEquals($value, $template->getAttribute($object, $item, $arguments, $type));
@@ -226,7 +244,7 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
226
  */
227
  public function testGetAttributeDefined($defined, $value, $object, $item, $arguments, $type, $useExt = false)
228
  {
229
- $template = new Twig_TemplateTest(new Twig_Environment(), $useExt);
230
 
231
  $this->assertEquals($defined, $template->getAttribute($object, $item, $arguments, $type, true));
232
  }
@@ -236,7 +254,7 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
236
  */
237
  public function testGetAttributeDefinedStrict($defined, $value, $object, $item, $arguments, $type, $useExt = false)
238
  {
239
- $template = new Twig_TemplateTest(new Twig_Environment(null, array('strict_variables' => true)), $useExt);
240
 
241
  $this->assertEquals($defined, $template->getAttribute($object, $item, $arguments, $type, true));
242
  }
@@ -246,7 +264,7 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
246
  */
247
  public function testGetAttributeCallExceptions($useExt = false)
248
  {
249
- $template = new Twig_TemplateTest(new Twig_Environment(), $useExt);
250
 
251
  $object = new Twig_TemplateMagicMethodExceptionObject();
252
 
@@ -257,27 +275,27 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
257
  {
258
  $array = array(
259
  'defined' => 'defined',
260
- 'zero' => 0,
261
- 'null' => null,
262
- '1' => 1,
263
- 'bar' => true,
264
- '09' => '09',
265
- '+4' => '+4',
266
  );
267
 
268
- $objectArray = new Twig_TemplateArrayAccessObject();
269
- $stdObject = (object) $array;
270
  $magicPropertyObject = new Twig_TemplateMagicPropertyObject();
271
- $propertyObject = new Twig_TemplatePropertyObject();
272
- $propertyObject1 = new Twig_TemplatePropertyObjectAndIterator();
273
- $propertyObject2 = new Twig_TemplatePropertyObjectAndArrayAccess();
274
- $propertyObject3 = new Twig_TemplatePropertyObjectDefinedWithUndefinedValue();
275
- $methodObject = new Twig_TemplateMethodObject();
276
- $magicMethodObject = new Twig_TemplateMagicMethodObject();
277
-
278
- $anyType = Twig_Template::ANY_CALL;
279
  $methodType = Twig_Template::METHOD_CALL;
280
- $arrayType = Twig_Template::ARRAY_CALL;
281
 
282
  $basicTests = array(
283
  // array(defined, value, property to fetch)
@@ -370,7 +388,7 @@ class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
370
  // tests when input is not an array or object
371
  $tests = array_merge($tests, array(
372
  array(false, null, 42, 'a', array(), $anyType, false, 'Impossible to access an attribute ("a") on a integer variable ("42")'),
373
- array(false, null, "string", 'a', array(), $anyType, false, 'Impossible to access an attribute ("a") on a string variable ("string")'),
374
  array(false, null, array(), 'a', array(), $anyType, false, 'Key "a" does not exist as the array is empty'),
375
  ));
376
 
@@ -452,12 +470,12 @@ class Twig_TemplateArrayAccessObject implements ArrayAccess
452
 
453
  public $attributes = array(
454
  'defined' => 'defined',
455
- 'zero' => 0,
456
- 'null' => null,
457
- '1' => 1,
458
- 'bar' => true,
459
- '09' => '09',
460
- '+4' => '+4',
461
  );
462
 
463
  public function offsetExists($name)
@@ -484,12 +502,12 @@ class Twig_TemplateMagicPropertyObject
484
  public $defined = 'defined';
485
 
486
  public $attributes = array(
487
- 'zero' => 0,
488
- 'null' => null,
489
- '1' => 1,
490
- 'bar' => true,
491
- '09' => '09',
492
- '+4' => '+4',
493
  );
494
 
495
  protected $protected = 'protected';
@@ -509,16 +527,16 @@ class Twig_TemplateMagicPropertyObjectWithException
509
  {
510
  public function __isset($key)
511
  {
512
- throw new Exception("Hey! Don't try to isset me!");
513
  }
514
  }
515
 
516
  class Twig_TemplatePropertyObject
517
  {
518
  public $defined = 'defined';
519
- public $zero = 0;
520
- public $null = null;
521
- public $bar = true;
522
 
523
  protected $protected = 'protected';
524
  }
10
  */
11
  class Twig_Tests_TemplateTest extends PHPUnit_Framework_TestCase
12
  {
13
+ /**
14
+ * @expectedException LogicException
15
+ */
16
+ public function testDisplayBlocksAcceptTemplateOnlyAsBlocks()
17
+ {
18
+ $template = $this->getMockForAbstractClass('Twig_Template', array(), '', false);
19
+ $template->displayBlock('foo', array(), array('foo' => array(new stdClass(), 'foo')));
20
+ }
21
+
22
  /**
23
  * @dataProvider getAttributeExceptions
24
  */
36
  $template = $env->loadTemplate($name);
37
 
38
  $context = array(
39
+ 'string' => 'foo',
40
+ 'null' => null,
41
+ 'empty_array' => array(),
42
+ 'array' => array('foo' => 'foo'),
43
+ 'array_access' => new Twig_TemplateArrayAccessObject(),
44
  'magic_exception' => new Twig_TemplateMagicPropertyObjectWithException(),
45
+ 'object' => new stdClass(),
46
  );
47
 
48
  try {
57
  {
58
  $tests = array(
59
  array('{{ string["a"] }}', 'Impossible to access a key ("a") on a string variable ("foo") in "%s" at line 1', false),
60
+ array('{{ null["a"] }}', 'Impossible to access a key ("a") on a null variable in "%s" at line 1', false),
61
  array('{{ empty_array["a"] }}', 'Key "a" does not exist as the array is empty in "%s" at line 1', false),
62
  array('{{ array["a"] }}', 'Key "a" for array with keys "foo" does not exist in "%s" at line 1', false),
63
  array('{{ array_access["a"] }}', 'Key "a" in object with ArrayAccess of class "Twig_TemplateArrayAccessObject" does not exist in "%s" at line 1', false),
64
  array('{{ string.a }}', 'Impossible to access an attribute ("a") on a string variable ("foo") in "%s" at line 1', false),
65
  array('{{ string.a() }}', 'Impossible to invoke a method ("a") on a string variable ("foo") in "%s" at line 1', false),
66
+ array('{{ null.a }}', 'Impossible to access an attribute ("a") on a null variable in "%s" at line 1', false),
67
+ array('{{ null.a() }}', 'Impossible to invoke a method ("a") on a null variable in "%s" at line 1', false),
68
  array('{{ empty_array.a }}', 'Key "a" does not exist as the array is empty in "%s" at line 1', false),
69
  array('{{ array.a }}', 'Key "a" for array with keys "foo" does not exist in "%s" at line 1', false),
70
  array('{{ attribute(array, -10) }}', 'Key "-10" for array with keys "foo" does not exist in "%s" at line 1', false),
71
  array('{{ array_access.a }}', 'Method "a" for object "Twig_TemplateArrayAccessObject" does not exist in "%s" at line 1', false),
72
+ array('{% from _self import foo %}{% macro foo(obj) %}{{ obj.missing_method() }}{% endmacro %}{{ foo(array_access) }}', 'Method "missing_method" for object "Twig_TemplateArrayAccessObject" does not exist in "%s" at line 1', false),
73
  array('{{ magic_exception.test }}', 'An exception has been thrown during the rendering of a template ("Hey! Don\'t try to isset me!") in "%s" at line 1.', false),
74
  array('{{ object["a"] }}', 'Impossible to access a key "a" on an object of class "stdClass" that does not implement ArrayAccess interface in "%s" at line 1', false),
75
  );
89
  */
90
  public function testGetAttributeWithSandbox($object, $item, $allowed, $useExt)
91
  {
92
+ $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
93
  $policy = new Twig_Sandbox_SecurityPolicy(array(), array(), array(/*method*/), array(/*prop*/), array());
94
  $twig->addExtension(new Twig_Extension_Sandbox($policy, !$allowed));
95
  $template = new Twig_TemplateTest($twig, $useExt);
133
  */
134
  public function testGetAttributeWithTemplateAsObject($useExt)
135
  {
136
+ $template = new Twig_TemplateTest(new Twig_Environment($this->getMock('Twig_LoaderInterface')), $useExt);
137
+ $template1 = new Twig_TemplateTest(new Twig_Environment($this->getMock('Twig_LoaderInterface')), false);
138
 
139
  $this->assertInstanceof('Twig_Markup', $template->getAttribute($template1, 'string'));
140
  $this->assertEquals('some_string', $template->getAttribute($template1, 'string'));
147
 
148
  $this->assertNotInstanceof('Twig_Markup', $template->getAttribute($template1, 'empty'));
149
  $this->assertSame('', $template->getAttribute($template1, 'empty'));
150
+
151
+ $this->assertFalse($template->getAttribute($template1, 'env', array(), Twig_Template::ANY_CALL, true));
152
+ $this->assertFalse($template->getAttribute($template1, 'environment', array(), Twig_Template::ANY_CALL, true));
153
+ $this->assertFalse($template->getAttribute($template1, 'getEnvironment', array(), Twig_Template::METHOD_CALL, true));
154
+ $this->assertFalse($template->getAttribute($template1, 'displayWithErrorHandling', array(), Twig_Template::METHOD_CALL, true));
155
  }
156
 
157
  public function getGetAttributeWithTemplateAsObject()
173
  public function testGetAttributeOnArrayWithConfusableKey($useExt = false)
174
  {
175
  $template = new Twig_TemplateTest(
176
+ new Twig_Environment($this->getMock('Twig_LoaderInterface')),
177
  $useExt
178
  );
179
 
212
  */
213
  public function testGetAttribute($defined, $value, $object, $item, $arguments, $type, $useExt = false)
214
  {
215
+ $template = new Twig_TemplateTest(new Twig_Environment($this->getMock('Twig_LoaderInterface')), $useExt);
216
 
217
  $this->assertEquals($value, $template->getAttribute($object, $item, $arguments, $type));
218
  }
222
  */
223
  public function testGetAttributeStrict($defined, $value, $object, $item, $arguments, $type, $useExt = false, $exceptionMessage = null)
224
  {
225
+ $template = new Twig_TemplateTest(new Twig_Environment($this->getMock('Twig_LoaderInterface'), array('strict_variables' => true)), $useExt);
226
 
227
  if ($defined) {
228
  $this->assertEquals($value, $template->getAttribute($object, $item, $arguments, $type));
244
  */
245
  public function testGetAttributeDefined($defined, $value, $object, $item, $arguments, $type, $useExt = false)
246
  {
247
+ $template = new Twig_TemplateTest(new Twig_Environment($this->getMock('Twig_LoaderInterface')), $useExt);
248
 
249
  $this->assertEquals($defined, $template->getAttribute($object, $item, $arguments, $type, true));
250
  }
254
  */
255
  public function testGetAttributeDefinedStrict($defined, $value, $object, $item, $arguments, $type, $useExt = false)
256
  {
257
+ $template = new Twig_TemplateTest(new Twig_Environment($this->getMock('Twig_LoaderInterface'), array('strict_variables' => true)), $useExt);
258
 
259
  $this->assertEquals($defined, $template->getAttribute($object, $item, $arguments, $type, true));
260
  }
264
  */
265
  public function testGetAttributeCallExceptions($useExt = false)
266
  {
267
+ $template = new Twig_TemplateTest(new Twig_Environment($this->getMock('Twig_LoaderInterface')), $useExt);
268
 
269
  $object = new Twig_TemplateMagicMethodExceptionObject();
270
 
275
  {
276
  $array = array(
277
  'defined' => 'defined',
278
+ 'zero' => 0,
279
+ 'null' => null,
280
+ '1' => 1,
281
+ 'bar' => true,
282
+ '09' => '09',
283
+ '+4' => '+4',
284
  );
285
 
286
+ $objectArray = new Twig_TemplateArrayAccessObject();
287
+ $stdObject = (object) $array;
288
  $magicPropertyObject = new Twig_TemplateMagicPropertyObject();
289
+ $propertyObject = new Twig_TemplatePropertyObject();
290
+ $propertyObject1 = new Twig_TemplatePropertyObjectAndIterator();
291
+ $propertyObject2 = new Twig_TemplatePropertyObjectAndArrayAccess();
292
+ $propertyObject3 = new Twig_TemplatePropertyObjectDefinedWithUndefinedValue();
293
+ $methodObject = new Twig_TemplateMethodObject();
294
+ $magicMethodObject = new Twig_TemplateMagicMethodObject();
295
+
296
+ $anyType = Twig_Template::ANY_CALL;
297
  $methodType = Twig_Template::METHOD_CALL;
298
+ $arrayType = Twig_Template::ARRAY_CALL;
299
 
300
  $basicTests = array(
301
  // array(defined, value, property to fetch)
388
  // tests when input is not an array or object
389
  $tests = array_merge($tests, array(
390
  array(false, null, 42, 'a', array(), $anyType, false, 'Impossible to access an attribute ("a") on a integer variable ("42")'),
391
+ array(false, null, 'string', 'a', array(), $anyType, false, 'Impossible to access an attribute ("a") on a string variable ("string")'),
392
  array(false, null, array(), 'a', array(), $anyType, false, 'Key "a" does not exist as the array is empty'),
393
  ));
394
 
470
 
471
  public $attributes = array(
472
  'defined' => 'defined',
473
+ 'zero' => 0,
474
+ 'null' => null,
475
+ '1' => 1,
476
+ 'bar' => true,
477
+ '09' => '09',
478
+ '+4' => '+4',
479
  );
480
 
481
  public function offsetExists($name)
502
  public $defined = 'defined';
503
 
504
  public $attributes = array(
505
+ 'zero' => 0,
506
+ 'null' => null,
507
+ '1' => 1,
508
+ 'bar' => true,
509
+ '09' => '09',
510
+ '+4' => '+4',
511
  );
512
 
513
  protected $protected = 'protected';
527
  {
528
  public function __isset($key)
529
  {
530
+ throw new Exception('Hey! Don\'t try to isset me!');
531
  }
532
  }
533
 
534
  class Twig_TemplatePropertyObject
535
  {
536
  public $defined = 'defined';
537
+ public $zero = 0;
538
+ public $null = null;
539
+ public $bar = true;
540
 
541
  protected $protected = 'protected';
542
  }
vendor/twig/twig/test/Twig/Tests/escapingTest.php CHANGED
@@ -9,144 +9,144 @@
9
  class Twig_Test_EscapingTest extends PHPUnit_Framework_TestCase
10
  {
11
  /**
12
- * All character encodings supported by htmlspecialchars()
13
  */
14
  protected $htmlSpecialChars = array(
15
- '\'' => '&#039;',
16
- '"' => '&quot;',
17
- '<' => '&lt;',
18
- '>' => '&gt;',
19
- '&' => '&amp;',
20
  );
21
 
22
  protected $htmlAttrSpecialChars = array(
23
- '\'' => '&#x27;',
24
  /* Characters beyond ASCII value 255 to unicode escape */
25
- 'Ā' => '&#x0100;',
26
  /* Immune chars excluded */
27
- ',' => ',',
28
- '.' => '.',
29
- '-' => '-',
30
- '_' => '_',
31
  /* Basic alnums excluded */
32
- 'a' => 'a',
33
- 'A' => 'A',
34
- 'z' => 'z',
35
- 'Z' => 'Z',
36
- '0' => '0',
37
- '9' => '9',
38
  /* Basic control characters and null */
39
- "\r" => '&#x0D;',
40
- "\n" => '&#x0A;',
41
- "\t" => '&#x09;',
42
- "\0" => '&#xFFFD;', // should use Unicode replacement char
43
  /* Encode chars as named entities where possible */
44
- '<' => '&lt;',
45
- '>' => '&gt;',
46
- '&' => '&amp;',
47
- '"' => '&quot;',
48
  /* Encode spaces for quoteless attribute protection */
49
- ' ' => '&#x20;',
50
  );
51
 
52
  protected $jsSpecialChars = array(
53
  /* HTML special chars - escape without exception to hex */
54
- '<' => '\\x3C',
55
- '>' => '\\x3E',
56
- '\'' => '\\x27',
57
- '"' => '\\x22',
58
- '&' => '\\x26',
59
  /* Characters beyond ASCII value 255 to unicode escape */
60
- 'Ā' => '\\u0100',
61
  /* Immune chars excluded */
62
- ',' => ',',
63
- '.' => '.',
64
- '_' => '_',
65
  /* Basic alnums excluded */
66
- 'a' => 'a',
67
- 'A' => 'A',
68
- 'z' => 'z',
69
- 'Z' => 'Z',
70
- '0' => '0',
71
- '9' => '9',
72
  /* Basic control characters and null */
73
- "\r" => '\\x0D',
74
- "\n" => '\\x0A',
75
- "\t" => '\\x09',
76
- "\0" => '\\x00',
77
  /* Encode spaces for quoteless attribute protection */
78
- ' ' => '\\x20',
79
  );
80
 
81
  protected $urlSpecialChars = array(
82
  /* HTML special chars - escape without exception to percent encoding */
83
- '<' => '%3C',
84
- '>' => '%3E',
85
- '\'' => '%27',
86
- '"' => '%22',
87
- '&' => '%26',
88
  /* Characters beyond ASCII value 255 to hex sequence */
89
- 'Ā' => '%C4%80',
90
  /* Punctuation and unreserved check */
91
- ',' => '%2C',
92
- '.' => '.',
93
- '_' => '_',
94
- '-' => '-',
95
- ':' => '%3A',
96
- ';' => '%3B',
97
- '!' => '%21',
98
  /* Basic alnums excluded */
99
- 'a' => 'a',
100
- 'A' => 'A',
101
- 'z' => 'z',
102
- 'Z' => 'Z',
103
- '0' => '0',
104
- '9' => '9',
105
  /* Basic control characters and null */
106
- "\r" => '%0D',
107
- "\n" => '%0A',
108
- "\t" => '%09',
109
- "\0" => '%00',
110
  /* PHP quirks from the past */
111
- ' ' => '%20',
112
- '~' => '~',
113
- '+' => '%2B',
114
  );
115
 
116
  protected $cssSpecialChars = array(
117
  /* HTML special chars - escape without exception to hex */
118
- '<' => '\\3C ',
119
- '>' => '\\3E ',
120
- '\'' => '\\27 ',
121
- '"' => '\\22 ',
122
- '&' => '\\26 ',
123
  /* Characters beyond ASCII value 255 to unicode escape */
124
- 'Ā' => '\\100 ',
125
  /* Immune chars excluded */
126
- ',' => '\\2C ',
127
- '.' => '\\2E ',
128
- '_' => '\\5F ',
129
  /* Basic alnums excluded */
130
- 'a' => 'a',
131
- 'A' => 'A',
132
- 'z' => 'z',
133
- 'Z' => 'Z',
134
- '0' => '0',
135
- '9' => '9',
136
  /* Basic control characters and null */
137
- "\r" => '\\D ',
138
- "\n" => '\\A ',
139
- "\t" => '\\9 ',
140
- "\0" => '\\0 ',
141
  /* Encode spaces for quoteless attribute protection */
142
- ' ' => '\\20 ',
143
  );
144
 
145
  protected $env;
146
 
147
  public function setUp()
148
  {
149
- $this->env = new Twig_Environment();
150
  }
151
 
152
  public function testHtmlEscapingConvertsSpecialChars()
@@ -205,16 +205,16 @@ class Twig_Test_EscapingTest extends PHPUnit_Framework_TestCase
205
  }
206
 
207
  /**
208
- * Range tests to confirm escaped range of characters is within OWASP recommendation
209
  */
210
 
211
  /**
212
  * Only testing the first few 2 ranges on this prot. function as that's all these
213
- * other range tests require
214
  */
215
  public function testUnicodeCodepointConversionToUtf8()
216
  {
217
- $expected = "";
218
  $codepoints = array(0x20, 0x7e, 0x799);
219
  $result = '';
220
  foreach ($codepoints as $value) {
@@ -226,7 +226,8 @@ class Twig_Test_EscapingTest extends PHPUnit_Framework_TestCase
226
  /**
227
  * Convert a Unicode Codepoint to a literal UTF-8 character.
228
  *
229
- * @param int $codepoint Unicode codepoint in hex notation
 
230
  * @return string UTF-8 literal string
231
  */
232
  protected function codepointToUtf8($codepoint)
@@ -255,7 +256,7 @@ class Twig_Test_EscapingTest extends PHPUnit_Framework_TestCase
255
  public function testJavascriptEscapingEscapesOwaspRecommendedRanges()
256
  {
257
  $immune = array(',', '.', '_'); // Exceptions to escaping ranges
258
- for ($chr = 0; $chr < 0xFF; $chr++) {
259
  if ($chr >= 0x30 && $chr <= 0x39
260
  || $chr >= 0x41 && $chr <= 0x5A
261
  || $chr >= 0x61 && $chr <= 0x7A) {
@@ -278,7 +279,7 @@ class Twig_Test_EscapingTest extends PHPUnit_Framework_TestCase
278
  public function testHtmlAttributeEscapingEscapesOwaspRecommendedRanges()
279
  {
280
  $immune = array(',', '.', '-', '_'); // Exceptions to escaping ranges
281
- for ($chr = 0; $chr < 0xFF; $chr++) {
282
  if ($chr >= 0x30 && $chr <= 0x39
283
  || $chr >= 0x41 && $chr <= 0x5A
284
  || $chr >= 0x61 && $chr <= 0x7A) {
@@ -301,7 +302,7 @@ class Twig_Test_EscapingTest extends PHPUnit_Framework_TestCase
301
  public function testCssEscapingEscapesOwaspRecommendedRanges()
302
  {
303
  // CSS has no exceptions to escaping ranges
304
- for ($chr = 0; $chr < 0xFF; $chr++) {
305
  if ($chr >= 0x30 && $chr <= 0x39
306
  || $chr >= 0x41 && $chr <= 0x5A
307
  || $chr >= 0x61 && $chr <= 0x7A) {
9
  class Twig_Test_EscapingTest extends PHPUnit_Framework_TestCase
10
  {
11
  /**
12
+ * All character encodings supported by htmlspecialchars().
13
  */
14
  protected $htmlSpecialChars = array(
15
+ '\'' => '&#039;',
16
+ '"' => '&quot;',
17
+ '<' => '&lt;',
18
+ '>' => '&gt;',
19
+ '&' => '&amp;',
20
  );
21
 
22
  protected $htmlAttrSpecialChars = array(
23
+ '\'' => '&#x27;',
24
  /* Characters beyond ASCII value 255 to unicode escape */
25
+ 'Ā' => '&#x0100;',
26
  /* Immune chars excluded */
27
+ ',' => ',',
28
+ '.' => '.',
29
+ '-' => '-',
30
+ '_' => '_',
31
  /* Basic alnums excluded */
32
+ 'a' => 'a',
33
+ 'A' => 'A',
34
+ 'z' => 'z',
35
+ 'Z' => 'Z',
36
+ '0' => '0',
37
+ '9' => '9',
38
  /* Basic control characters and null */
39
+ "\r" => '&#x0D;',
40
+ "\n" => '&#x0A;',
41
+ "\t" => '&#x09;',
42
+ "\0" => '&#xFFFD;', // should use Unicode replacement char
43
  /* Encode chars as named entities where possible */
44
+ '<' => '&lt;',
45
+ '>' => '&gt;',
46
+ '&' => '&amp;',
47
+ '"' => '&quot;',
48
  /* Encode spaces for quoteless attribute protection */
49
+ ' ' => '&#x20;',
50
  );
51
 
52
  protected $jsSpecialChars = array(
53
  /* HTML special chars - escape without exception to hex */
54
+ '<' => '\\x3C',
55
+ '>' => '\\x3E',
56
+ '\'' => '\\x27',
57
+ '"' => '\\x22',
58
+ '&' => '\\x26',
59
  /* Characters beyond ASCII value 255 to unicode escape */
60
+ 'Ā' => '\\u0100',
61
  /* Immune chars excluded */
62
+ ',' => ',',
63
+ '.' => '.',
64
+ '_' => '_',
65
  /* Basic alnums excluded */
66
+ 'a' => 'a',
67
+ 'A' => 'A',
68
+ 'z' => 'z',
69
+ 'Z' => 'Z',
70
+ '0' => '0',
71
+ '9' => '9',
72
  /* Basic control characters and null */
73
+ "\r" => '\\x0D',
74
+ "\n" => '\\x0A',
75
+ "\t" => '\\x09',
76
+ "\0" => '\\x00',
77
  /* Encode spaces for quoteless attribute protection */
78
+ ' ' => '\\x20',
79
  );
80
 
81
  protected $urlSpecialChars = array(
82
  /* HTML special chars - escape without exception to percent encoding */
83
+ '<' => '%3C',
84
+ '>' => '%3E',
85
+ '\'' => '%27',
86
+ '"' => '%22',
87
+ '&' => '%26',
88
  /* Characters beyond ASCII value 255 to hex sequence */
89
+ 'Ā' => '%C4%80',
90
  /* Punctuation and unreserved check */
91
+ ',' => '%2C',
92
+ '.' => '.',
93
+ '_' => '_',
94
+ '-' => '-',
95
+ ':' => '%3A',
96
+ ';' => '%3B',
97
+ '!' => '%21',
98
  /* Basic alnums excluded */
99
+ 'a' => 'a',
100
+ 'A' => 'A',
101
+ 'z' => 'z',
102
+ 'Z' => 'Z',
103
+ '0' => '0',
104
+ '9' => '9',
105
  /* Basic control characters and null */
106
+ "\r" => '%0D',
107
+ "\n" => '%0A',
108
+ "\t" => '%09',
109
+ "\0" => '%00',
110
  /* PHP quirks from the past */
111
+ ' ' => '%20',
112
+ '~' => '~',
113
+ '+' => '%2B',
114
  );
115
 
116
  protected $cssSpecialChars = array(
117
  /* HTML special chars - escape without exception to hex */
118
+ '<' => '\\3C ',
119
+ '>' => '\\3E ',
120
+ '\'' => '\\27 ',
121
+ '"' => '\\22 ',
122
+ '&' => '\\26 ',
123
  /* Characters beyond ASCII value 255 to unicode escape */
124
+ 'Ā' => '\\100 ',
125
  /* Immune chars excluded */
126
+ ',' => '\\2C ',
127
+ '.' => '\\2E ',
128
+ '_' => '\\5F ',
129
  /* Basic alnums excluded */
130
+ 'a' => 'a',
131
+ 'A' => 'A',
132
+ 'z' => 'z',
133
+ 'Z' => 'Z',
134
+ '0' => '0',
135
+ '9' => '9',
136
  /* Basic control characters and null */
137
+ "\r" => '\\D ',
138
+ "\n" => '\\A ',
139
+ "\t" => '\\9 ',
140
+ "\0" => '\\0 ',
141
  /* Encode spaces for quoteless attribute protection */
142
+ ' ' => '\\20 ',
143
  );
144
 
145
  protected $env;
146
 
147
  public function setUp()
148
  {
149
+ $this->env = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
150
  }
151
 
152
  public function testHtmlEscapingConvertsSpecialChars()
205
  }
206
 
207
  /**
208
+ * Range tests to confirm escaped range of characters is within OWASP recommendation.
209
  */
210
 
211
  /**
212
  * Only testing the first few 2 ranges on this prot. function as that's all these
213
+ * other range tests require.
214
  */
215
  public function testUnicodeCodepointConversionToUtf8()
216
  {
217
+ $expected = '';
218
  $codepoints = array(0x20, 0x7e, 0x799);
219
  $result = '';
220
  foreach ($codepoints as $value) {
226
  /**
227
  * Convert a Unicode Codepoint to a literal UTF-8 character.
228
  *
229
+ * @param int $codepoint Unicode codepoint in hex notation
230
+ *
231
  * @return string UTF-8 literal string
232
  */
233
  protected function codepointToUtf8($codepoint)
256
  public function testJavascriptEscapingEscapesOwaspRecommendedRanges()
257
  {
258
  $immune = array(',', '.', '_'); // Exceptions to escaping ranges
259
+ for ($chr = 0; $chr < 0xFF; ++$chr) {
260
  if ($chr >= 0x30 && $chr <= 0x39
261
  || $chr >= 0x41 && $chr <= 0x5A
262
  || $chr >= 0x61 && $chr <= 0x7A) {
279
  public function testHtmlAttributeEscapingEscapesOwaspRecommendedRanges()
280
  {
281
  $immune = array(',', '.', '-', '_'); // Exceptions to escaping ranges
282
+ for ($chr = 0; $chr < 0xFF; ++$chr) {
283
  if ($chr >= 0x30 && $chr <= 0x39
284
  || $chr >= 0x41 && $chr <= 0x5A
285
  || $chr >= 0x61 && $chr <= 0x7A) {
302
  public function testCssEscapingEscapesOwaspRecommendedRanges()
303
  {
304
  // CSS has no exceptions to escaping ranges
305
+ for ($chr = 0; $chr < 0xFF; ++$chr) {
306
  if ($chr >= 0x30 && $chr <= 0x39
307
  || $chr >= 0x41 && $chr <= 0x5A
308
  || $chr >= 0x61 && $chr <= 0x7A) {
wunderground.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Weather Underground
4
  * Plugin URI: https://github.com/katzwebservices/Wunderground#setting-up-the-plugin
5
  * Description: Get accurate and beautiful weather forecasts powered by Wunderground.com for your content or your sidebar.
6
- * Version: 2.1
7
  * License: GPLv2 or later
8
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  * Author: Katz Web Services, Inc.
@@ -16,8 +16,9 @@ class Wunderground_Plugin {
16
 
17
  /**
18
  * Version used to prime style and script caches
 
19
  */
20
- const version = '2.1';
21
 
22
  var $logger;
23
  var $is_debug = false;
3
  * Plugin Name: Weather Underground
4
  * Plugin URI: https://github.com/katzwebservices/Wunderground#setting-up-the-plugin
5
  * Description: Get accurate and beautiful weather forecasts powered by Wunderground.com for your content or your sidebar.
6
+ * Version: 2.1.1
7
  * License: GPLv2 or later
8
  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
  * Author: Katz Web Services, Inc.
16
 
17
  /**
18
  * Version used to prime style and script caches
19
+ * @var string
20
  */
21
+ const version = '2.1.1';
22
 
23
  var $logger;
24
  var $is_debug = false;