This is the talk page for discussing improvements to the Less page.
- Please sign and date your posts by typing four tildes (
~~~~). - Put new text under old text. Click here to start a new topic.
- If you're new to the wiki, please take a look at the talk page help.
- Be polite
- Assume good faith
- Be welcoming
| This is the talk page for Less. Post here if you have any of the following: |
|---|
|
Ukrainian and russian translation
Hello, I'd like to help you to translate required messages into russian and ukrainian languages.
//Ukrainian
uk: {
// ui messages
'update': 'Оновити CSS',
'less-interface': 'Інтерфейс LESS',
'close': 'Закрити',
// status messages
'get-num-files': 'Підрахунок кількості файлів',
'files-found': 'знайдено $1 файлів',
'getting-file': 'Отримання $1 ($2/$3)',
'compiling-less': 'Компіляція з LESS в CSS',
'format-css': 'Форматування CSS',
'get-header': 'Отримання заголовку CSS файла',
'attempt-edit': 'Спроба оновлення CSS',
'success-edit': 'CSS було успішно оновлено',
// edit summary
'edit-summary': 'Оновлення з [[$1]]',
// error messages
'page-not-found': 'Не вдалося знайти сторінку - будь ласка, перевірте свої налаштування',
'file-not-found': 'Не вдалося знайти файл. Будь ласка, перевірте сторінку [[$1]]',
'less-parse-error': 'Помилка парсингу рядка $1 на сторінці [[$2]]',
'api-edit-error': 'Якщо ви вважаєте, що знайшли баг, будь ласка, повідомте про це [[$1|тут]]',
'api-unknown-error': 'Невідома помилка',
'api-error-persist': 'Якщо повідомлення про цю помилку з\'явиться знову, повідомте про це [[$1|тут]]'
}
//Russian
ru: {
// ui messages
'update': 'Обновить CSS',
'less-interface': 'Интерфейс LESS',
'close': 'Закрыть',
// status messages
'get-num-files': 'Подсчёт количества файлов',
'files-found': 'найдено $1 файлов',
'getting-file': 'Получение $1 ($2/$3)',
'compiling-less': 'Компиляция из LESS в CSS',
'format-css': 'Форматирование CSS',
'get-header': 'Получение заголовка CSS файла',
'attempt-edit': 'Попытка обновления CSS',
'success-edit': 'CSS был успешно обновлен',
// edit summary
'edit-summary': 'Обновление из [[$1]]',
// error messages
'page-not-found': 'Страница не найдена - пожалуйста, проверьте свои настройки',
'file-not-found': 'Файл не найден. Пожалуйста, проверьте страницу [[$1]]',
'less-parse-error': 'Ошибка обработки строки $1 на странице [[$2]]',
'api-edit-error': 'Если вы считаете, что обнаружили баг, пожалуйста, напишите о нём [[$1|здесь]]',
'api-unknown-error': 'Неизвестная ошибка',
'api-error-persist': 'Если сообщение об этой ошибке будет появляться снова, пожалуйста, сообщите об этом [[$1|сюда]]'
}
=Wildream=||talk 20:14, April 3, 2014 (UTC)
- Thanks! I'll get those added in :)
- I'm working on version 2 of the script which supports importing less files through @import. Would I be able to contact you for any missing translations when that gets released? cqm 09:15, 4 Apr 2014 (UTC)
- Sure, feel free to contact me on my talk page if there will be another messages :) =Wildream=||talk 17:34, April 4, 2014 (UTC)
Spanish
Hi!
Here is the spanish translation!:
// Español
es: {
// mensajes generales
'update': 'Actualizar CSS',
'less-interface': 'Interfaz de LESS',
'close': 'Cerrar',
// mensajes de estado
'get-num-files': 'Obteniendo número de archivos',
'files-found': '$1 archivos encontrados',
'getting-file': 'Obteniendo $1 ($2/$3)',
'compiling-less': 'Compilando LESS al CSS',
'format-css': 'Dando formato al CSS',
'get-header': 'Obteniendo título del archivo CSS',
'attempt-edit': 'Intentando actualizar el CSS',
'success-edit': 'El CSS ha sido actualizado exitosamente',
// resúmen de edición
'edit-summary': 'Actualizando desde [[$1]]',
// mensajes de error
'page-not-found': 'Página no encontrada - por favor, revisa tu configuración',
'file-not-found': 'Archivo no encontrada. Por favor, revisa [[$1]]',
'less-parse-error': 'Error de análisis en la línea $1 en [[$2]]',
'api-edit-error': 'Si crees que has encontrado un error o un bug, por favor, repórtalo [[$1|aquí]]',
'api-unknown-error': 'Un error desconocido ha ocurrido',
'api-error-persist': 'Si el problema persiste, por favor, repórtalo [[$1|aquí]]'
}
P[ntor Kagam]ne [ talk me![[Special:Contributions/Pintor Kagamine|Special:EditCount/Pintor Kagamine contribs.]]] 20:18, April 4, 2014 (UTC)
- Thanks :) It's added in, sorry about the delay. cqm 11:03, 23 Apr 2014 (UTC)
New Spanish Translations
es: {
'update-css': 'Actualizar CSS',
'less-title': 'Interfaz de LESS',
'less-close': 'Cerrar',
'debug-enabled': 'Modo depurador habilitado',
'getting-source': 'Obteniendo archivo fuente: [[$1]]',
'getting-mixins': 'Obteniendo mixins estándares',
'attempt-parse': 'Intentando analizar LESS',
'import-success': '$1 importado exitosamente',
'import-error': 'Hubo un fallo al importar $1',
'formatting-css': 'Dando formato al CSS',
'edit-success': '[[$1]] actualizado exitosamente',
'edit-summary': 'Actualizando CSS desde [[$1]]',
'internal-error': 'Error interno',
'page-not-found': 'Página no encontrada, por favor revisa tu configuración',
'check-imports': 'Uno o más archivos no fueron importados, asegúrate de que todos los @import existen',
'parse-error-file': 'Analizar error $1 en [[$2]]',
'unknown-error': 'Ha ocurrido un error desconocido',
'error-persist': 'Si el problema persiste, por favor repórtalo [[$1|aquí]]'
}
- P[ntor Kagam]ne [ talk me![[Special:Contributions/Pintor Kagamine|Special:EditCount/Pintor Kagamine contribs.]]] 17:13, July 25, 2014 (UTC)
New Ukrainian and Russian translation
Hello. * Finally *, here's the new translation for UK and RU:
uk: {
'update-css': 'Оновити CSS',
'less-title': 'Інтерфейс LESS',
'less-close': 'Закрити',
'debug-enabled': 'Дебаг ввімкнено',
'getting-source': 'Завантаження файлу [[$1]]',
'getting-mixins': 'Отримання стандартних міксинів',
'attempt-parse': 'Спроба парсингу LESS',
'import-success': 'Успішно завантажено файл $1',
'import-error': 'Помилка при завантаженні $1',
'formatting-css': 'Форматування CSS',
'edit-success': '[[$1]] успішно оновлено',
'edit-summary': 'Оновлення CSS з [[$1]]',
'internal-error': 'Помилка розширення',
'page-not-found': 'Не вдалося знайти сторінку - будь ласка, перевірте свої налаштування',
'check-imports': 'Не вдалося імпортувати один, або декілька файлів. Перевірте директиви @import - вони мають посилатися на існуючі сторінки',
'parse-error-file': 'Помилка парсингу рядка $1 на сторінці [[$2]]',
'unknown-error': 'Невідома помилка',
'error-persist': 'Якщо ви вважаєте, що знайшли баг, будь ласка, повідомте про це [[$1|тут]]'
}
For RU:
ru: {
'update-css': 'Обновить CSS',
'less-title': 'Интерфейс LESS',
'less-close': 'Закрыть',
'debug-enabled': 'Включён режим работы над ошибками',
'getting-source': 'Загрузка файла [[$1]]',
'getting-mixins': 'Получение стандартных миксинов',
'attempt-parse': 'Попытка парсинга LESS',
'import-success': 'Успешно загружен файл $1',
'import-error': 'При загрузке $1 произошла ошибка',
'formatting-css': 'Форматирование CSS',
'edit-success': '[[$1]] успешно обновлён',
'edit-summary': 'Обновление CSS из [[$1]]',
'internal-error': 'Ошибка расширения',
'page-not-found': 'Страница не найдена - пожалуйста, проверьте свои настройки',
'check-imports': 'Не удалось импортировать один или несколько файлов. Проверьте конструкции @import, они должны ссылаться на существующие страницы',
'parse-error-file': 'Ошибка парсинга строки $1 на странице [[$2]]',
'unknown-error': 'Неизвестная ошибка',
'error-persist': 'Если сообщение об этой ошибке будет появляться снова, пожалуйста, сообщите об этом [[$1|сюда]]'
}
Wild 09:13, October 9, 2014 (UTC)
- Both added in, thanks for translating them :) cqm 23:23, 9 Oct 2014 (UTC)
Monobook support still?
The page says it has monobook support, but unless I'm blind I don't seem to see any options to run it on monobook (the script is in common.js and runs fine on the wikia skin). When i use ?useskin=wikia to see the button and run it, it complains about a random error that doesn't exist (the error does not pop up if i change my skin to wikia in my settings). I don't need to change my CSS often so it's not a high priority, but figured I'd ask about it. ☙Fewfre☎ 🔎 K🧀19:53 Fri, 22 May 2015
- It's there :) it's located in your toolbox along with what links here, related changes, etc. Note it only loads on pre defined pages, it won't load just anywhere. cqm 21:24, 10 Jun 2015 (UTC)
New german translation
Hi there, here comes the german translation!
de: {
'update-css': 'Aktualisiere CSS',
'less-title': 'LESS-Interface',
'less-close': 'Schließen',
'debug-enabled': 'Debuggingmodus an',
'getting-source': 'Lade Quelldatei: [[$1]]',
'getting-mixins': 'Lade Standardmixins',
'attempt-parse': 'Versuche, LESS zu parsen',
'import-success': '$1 erfolgreich importiert',
'import-error': 'Import von $1 fehlgeschlagen',
'formatting-css': 'Formatiere CSS',
'edit-success': '[[$1]] erfolgreich aktualisiert',
'edit-summary': 'Aktualisiere CSS von [[$1]]',
'internal-error': 'Interner Fehler',
'page-not-found': 'Seite nicht gefunden, bitte überprüfe deine Konfiguration',
'check-imports': 'Eine oder mehr Dateien können nicht importiert werden, bitte stelle sicher, dass alle @import-Anweisungen auf existierende Seiten verweisen',
'parse-error-file': 'Fehler beim Parsen in Zeile $1 in [[$2]]',
'unknown-error': 'Ein unbekannter Fehler ist aufgetreten',
'error-persist': 'Wenn der Fehler bestehen bleibt, melde ihn bitte [[$1|hier]]'
}
Agent Zuri 08:52, August 29, 2016 (UTC)
lessOpts.header Proposal
Hi there,
This is the default lessOpts.header:
/* <pre> */ /** * This is the header for MediaWiki:Common.css * * This page is compiled from LESS files listed in MediaWiki:Common.less and should not be edited directly. * For documentation, see [[Project:CSS]] */
Could you make "MediaWiki:Common.css" and "MediaWiki:Common.less" variable, so there could be one a default template and only in special cases there have to be more than this? Agent Zuri 10:42, August 29, 2016 (UTC)
- I could, but as people generally have 3 main .css files I don't think making 3 pages during the initial setup and never touching them again is that much of an issue. cqm 07:20, 19 Sep 2017 (UTC)
Common variables
Would you include variables like these as a subpage?
Agent Zuri 10:41, July 26, 2017 (UTC)
- It's possible to add them, but I don't know how useful they'd be. The point of Less is to help adapt your CSS to the wiki's theme without having to dig the colours out manually. Using the Fandom colour scheme isn't within the scope of that and as this is primarily aimed at site-wide usage, you shouldn't be modifying the theme of global elements in the first place. cqm 07:20, 19 Sep 2017 (UTC)
Questions/Notes
Hi. Do you have any plans in the near future to import a syntax highlighting for .less pages? Also, I noticed that the @filepath feature produces "http" file paths and I think it should not do that now, seeing Wikia trying to transit to "https" or am I wrong?
And finally, is there any way similar to @theme-buttons that could be used to correspond with the "background-color" used in the pseudo classes of the page header's edit button?--Luma.dash (talk) 21:50, March 22, 2018 (UTC)
Breaks on UCP wikis
Gets stuck on the second step, and console log said something about "dev.colors not found" or something. ☙Fewfre☎ 🔎 K🧀16:38 Thu, 20 Aug 2020
- Where are you testing it? -- Cube-shaped garbage can 18:08, August 20, 2020 (UTC)
Problem with updating css on a subpage
When I set the Update CSS button to show on a subpage of MediaWiki:Custom-common.less, when I start updating CSS it would show
Failed to import MediaWiki:Custom-common.less/MediaWiki:Custom-common.less/subpage.less
We checked that the source is correct, and on Custom-common.less the imports are like
@dir: "MediaWiki:Custom-common.less";@import "@{dir}/subpage.less";@import "@{dir}/subpage2.less";
So, I'm not sure why "MediaWiki:Custom-common.less" appears twice when importing.
Note: The button works on both Common.css and Custom-common.less.
- MonkeysHK (talk) 21:33, 29 January 2022 (UTC)
Resolved by adding a slash before the base directory to force the path to be relative to base (@dir: "/MediaWiki:Custom-common.less";)
- MonkeysHK (talk) 15:57, 15 March 2022 (UTC)