1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-11 17:24:46 +02:00

I seem to be bad at spelling the word langauges oops languages

This commit is contained in:
Ryan Cramer
2025-02-28 13:53:03 -05:00
parent a8ea954462
commit b7636bc1df
5 changed files with 6 additions and 7 deletions

View File

@@ -461,7 +461,7 @@ class InputfieldTextTags extends Inputfield implements
* *
*/ */
public function getTagLabel($tag, $language = null) { public function getTagLabel($tag, $language = null) {
if(!$language && $this->wire()->langauges) $language = $this->wire()->user->language; if(!$language && $this->wire()->languages) $language = $this->wire()->user->language;
$tags = $this->getTagsList($language); $tags = $this->getTagsList($language);
if(isset($tags[$tag])) return $tags[$tag]; if(isset($tags[$tag])) return $tags[$tag];
if($this->allowUserTags()) return $tag; if($this->allowUserTags()) return $tag;

View File

@@ -491,8 +491,7 @@ class InputfieldToggle extends Inputfield {
if($labelType === null) $labelType = $this->labelType; if($labelType === null) $labelType = $this->labelType;
/** @var Languages $langauges */ $languages = $this->wire()->languages;
$languages = $this->wire('languages');
$setLanguage = false; $setLanguage = false;
$languageId = ''; $languageId = '';
$yes = ''; $yes = '';

View File

@@ -431,7 +431,7 @@ class Languages extends PagesType {
* $languages->setLocale(LC_ALL, 'en_US.UTF-8'); * $languages->setLocale(LC_ALL, 'en_US.UTF-8');
* *
* // Set locale for specific category (CTYPE) * // Set locale for specific category (CTYPE)
* $langauges->setLocale(LC_CTYPE, 'en_US.UTF-8'); * $languages->setLocale(LC_CTYPE, 'en_US.UTF-8');
* *
* // Try multiple locales till one works (in order) using array * // Try multiple locales till one works (in order) using array
* $languages->setLocale(LC_ALL, [ 'en_US.UTF-8', 'en_US', 'en' ]); * $languages->setLocale(LC_ALL, [ 'en_US.UTF-8', 'en_US', 'en' ]);

View File

@@ -1692,7 +1692,7 @@ class ProcessField extends Process implements ConfigurableModule {
protected function buildEditFormTypeSelect() { protected function buildEditFormTypeSelect() {
$modules = $this->wire()->modules; $modules = $this->wire()->modules;
$languages = $this->wire()->langauges; $languages = $this->wire()->languages;
$fields = $this->wire()->fields; $fields = $this->wire()->fields;
$config = $this->wire()->config; $config = $this->wire()->config;
$isNew = !$this->field || !$this->field->id; $isNew = !$this->field || !$this->field->id;
@@ -3263,7 +3263,7 @@ class ProcessField extends Process implements ConfigurableModule {
*/ */
public function search($text, array $options = array()) { public function search($text, array $options = array()) {
$languages = $this->wire()->langauges; $languages = $this->wire()->languages;
$page = $this->getProcessPage(); $page = $this->getProcessPage();
$result = array( $result = array(

View File

@@ -3851,7 +3851,7 @@ class ProcessTemplate extends Process implements ConfigurableModule {
*/ */
public function search($text, array $options = array()) { public function search($text, array $options = array()) {
$languages = $this->wire()->langauges; $languages = $this->wire()->languages;
$page = $this->getProcessPage(); $page = $this->getProcessPage();
$property = isset($options['property']) ? $options['property'] : ''; $property = isset($options['property']) ? $options['property'] : '';