Hi Anders, *,
On Tue, Feb 7, 2012 at 5:00 PM, Anders Holbøll <andershol@gmail.com> wrote:
I wanted to have at look at the source code for the website. But I had a
little trouble finding it. Perhaps a little information should be added to
the wiki or made a little more obvious if it exists.
Oh, you did find it already...
I'm curious: What are you trying to work on?
As far as I can see the code for the CMS is at
https://github.com/tdf/cms-code/ ,
& cms-themes, yes, but you found that already as well...
but it seems that this repository is not
quite up to date, e.g.
- /cms-themes/libo/images/tick.png seems to be missing.
- /cms-themes/libo/css/typography.css is different and so is
/cms-themes/libo/templates/Layout/DownloadPage.ss (the "Get details"
chechbox is missing)
Indeed, some of them are not up-to-date, thanks for the reminder...
- A lot of language names are missing.
Yes, those are overridden/defined in the configuration file that is
not part of the repo (as it contains the database-credentials,
api-keys and the like)
But for the sake of transparency and completeness the l18n overrides:
i18n::$all_locales["bo_CN"] = 'Tibetan';
i18n::$all_locales["brx_IN"] = 'Bodo (India)';
i18n::$all_locales["oc_FR"] = 'Occitan (oc_FR)';
i18n::$all_locales["zh_CN"] = 'Chinese (simplified)';
i18n::$all_locales["zh_TW"] = 'Chinese (traditional)';
i18n::$common_languages["as"] = array('Assamese','অসমীয়া');
i18n::$common_languages["ast"] = array('Asturian','Asturianu');
i18n::$common_languages["be"] = array('Belarusian','беларуская');
i18n::$common_languages["be-BY"]= array('Belarusian','беларуская'); /*
obsolete, be preferred */
i18n::$common_languages["bo"] = array('Tibetan','བོད་ཡིག');
i18n::$common_languages["br"] = array('Breton','brezhoneg');
i18n::$common_languages["brx"] = array('Bodo (India)','बोडो');
i18n::$common_languages["bs"] = array('Bosnian','Bosanski');
i18n::$common_languages["ca-XV"]= array('Catalan valencian','Català
(valencià)');
i18n::$common_languages["dgo"] = array('Dogri','डोगरी');
i18n::$common_languages["dz"] = array('Dzongkha','རྫོང་ཁ');
i18n::$common_languages["en-GB"]= array('English (GB)','English (GB)');
i18n::$common_languages["en-US"]= array('English (US)','English (US)');
i18n::$common_languages["en-ZA"]= array('English (ZA)','English (ZA)');
i18n::$common_languages["ga"] = array('Irish','Gaeilge');
i18n::$common_languages["gd"] = array('Scottish Gaelic','Gàidhlig');
i18n::$common_languages["hi-IN"]= array('Hindi','हिन्दी');
i18n::$common_languages["ka"] = array('Georgian','ქართული');
i18n::$common_languages["kk"] = array('Kazakh','Қазақша');
i18n::$common_languages["km"] = array('Khmer','ខ្មែរ');
i18n::$common_languages["kn"] = array('Kannada','ಕನ್ನಡ');
i18n::$common_languages["kok"] = array('Konkani','कोंकणी');
i18n::$common_languages["ks"] = array('Kashmiri','ﻚﺸﻤﻳﺮﻳ');
i18n::$common_languages["ky"] = array('Kyrgyz','Кыргыз');
i18n::$common_languages["lo"] = array('Lao','ພາສາລາວ');
i18n::$common_languages["lt"] = array('Lithuanian','Lietuvių kalba');
i18n::$common_languages["mai"] = array('Maithili','मैथिली');
i18n::$common_languages["ml"] = array('Malayalam','മലയാളം');
i18n::$common_languages["mn"] = array('Mongolian','монгол');
i18n::$common_languages["mni"] = array('Manipuri','মৈইতৈইলোন');
i18n::$common_languages["my"] = array('Burmese','မန္မာစာ');
i18n::$common_languages["nb"] = array('Norwegian Bokmål','Bokmål');
i18n::$common_languages["nn"] = array('Norwegian Nynorsk','Nynorsk');
i18n::$common_languages["nr"] = array('Ndebelei (South)','Ndébélé');
i18n::$common_languages["ns"] = array('Northern Sotho','sePêdi'); /*
obsolete, nso preferred */
i18n::$common_languages["nso"] = array('Northern Sotho','sePêdi');
i18n::$common_languages["oc"] = array('Occitan','occitan');
i18n::$common_languages["or"] = array('Oriya','ଓଡ଼ିଆ');
i18n::$common_languages["pa-IN"]= array('Panjabi','ਪੰਜਾਬੀ');
i18n::$common_languages["pap"] = array('Papiamento','Papiamentu');
i18n::$common_languages["ps"] = array('Pushto','پښﺕﻭ');
i18n::$common_languages["pt"] = array('Portuguese','português');
i18n::$common_languages["rw"] = array('Kinyarwanda','kinyaRwanda');
i18n::$common_languages["sa-IN"]= array('Sanskrit','संस्कृतम्');
i18n::$common_languages["sat"] = array('Santali','संथाली');
i18n::$common_languages["sc"] = array('Sardinian','sardu');
i18n::$common_languages["sd"] = array('Sindhi','ﺲﻧﺩھی');
i18n::$common_languages["sh"] = array('Serbo-Croatian (latin
script)','srpski latinicom'); //obsolete
i18n::$common_languages["si"] = array('Sinhala','සිංහල');
i18n::$common_languages["si-LK"] = array('Sinhala','සිංහල');
i18n::$common_languages["ss"] = array('Swati','siSwati');
i18n::$common_languages["st"] = array('Southern Sotho','Sesotho');
i18n::$common_languages["sw-TZ"]= array('Swahili ','kiswahili');
i18n::$common_languages["tg"] = array('Tajik','тоҷикӣ');
i18n::$common_languages["th"] = array('Thai','ภาษาไทย');
i18n::$common_languages["ti"] = array('Tigrinya','ትግርኛ');
i18n::$common_languages["ug"] = array('Uighur','ﺉۇﻲﻏۇﺭچە');
i18n::$common_languages["zh-CN"]= array('Chinese (simplified)','中文 (简体)');
i18n::$common_languages["zh-TW"]= array('Chinese (traditional)','中文 (正體)');
i18n::$common_locales["bo_CN"] = array('Tibetan','བོད་ཡིག');
i18n::$common_locales["brx_IN"]= array('Bodo (India)','बोडो');
i18n::$common_locales["en_CA"] = array('English (CA)','English (CA)');
i18n::$common_locales["fr_CA"] = array('French (CA)','French (CA)');
i18n::$common_locales["gd_GB"] = array('Gaelic','Gàidhlig');
i18n::$common_locales["ka_GE"] = array('Georgian','ქართული');
i18n::$common_locales["lo_LA"] = array('Lao','ພາສາລາວ');
i18n::$common_locales["ml_IN"] = array('Malayalam','മലയാളം');
i18n::$common_locales["oc_FR"] = array('Occitan (oc_FR)', 'Occitan (oc_FR)');
i18n::$common_locales["si_LK"] =
array('Sinhala','සිංහල');
i18n::$common_locales["zh_CN"] = array('Chinese (simplified)', '中文 (简体)');
i18n::$common_locales["zh_TW"] = array('Chinese (traditional)', '中文 (正體)');
i18n::$tinymce_lang["pt_PT"]="pt";
- The /cms-code/mysite/code/UpdateDownloadsTask.php throws some errors e.g.
index out of range, but perhaps they are just ignored on the live site. I
fixed these locally.
UpdateDownloadsTask is not meant to be run by you or anyone else
besides the people who do add the binaries to the server. There is no
point in running it more often than after a new release is added to
the mirror system.
How do you run it to begin with?
It would be nice if the repository could be updated.
Well - patches welcome in any case.
It seems that /cms-code/themes/ should be a submodule importing /cms-themes/
or at least it should be documented what to do.
Yes, at the time the repo was created, github didn't support
submodules (or I didn't know that github would support them), so it
was a separate module from the very beginning (and not yet converted
as the others)
The file /cms-code/mysite/_config.php seems to have been left out of the
repository because it contains the database-password.
Yes, as mentioned above it also contains recaptcha api keys and
email-addresses for logging,...
But that makes it
harder for a new developer to setup the site since the file probably also
contains a line like "Object::add_extension('SiteTree', 'Translatable');"
that isn't in the standard silverstripe _config.
The repo is not meant as a starting point to a new installation -
indeed it requires extensions like the one you mentioned, and also
decorators for the Subsite object for example.
Couldn't the password
therefore be put in another file, that could be excluded from git and
included in _config.php or just named e.g.
"/cms-code/mysite.secret/_config.php" so silverstripe will find it. The
"install.php" should probably also be included, although I am not sure it
turned out to be needed.
If you want to install, I'd just use silverstripe's installer module,
install it (i.e. let it setup the database & .htaccess for you, as
that's basically all that is done when installing), and then replace
the files with the checkout.
The install.php is not needed if you setup the database yourself, and
have a corresponding .htaccess to pass the requests through
silverstripe in case the file doesn't exist on disk. The install.php
basically only checks whether your setup meets the requirements and
setup the database for you and adds the sample page.
Somewhat unrelated, but on the list of "International sites" couldn't the
sites that are not yet ready (those with no link, and also "Lao") be
removed? It doesn't seem very helpfull to list sites that doesn't yet exist.
Adding them was intentional - of course it it unfortunate that some
projects did request a site to be setup, but then didn't start working
on it, I'd rather ping the people again and not just remove the sites.
Also the domain-name-column could probably be removed, since it probably
isn't important/informative to normal users.
But then only two language columns look so lonely in the wide page, so
you'd need to make it four columns or something like that. In any
case, please open a separate thread for this.
Also it seems to me that this file (and the corresponding "rpm" and "x86_64"
files, in total 4 files) are in the wrong folder, since they are 3.4 release
candidate files in the stable 3.3.4 folder.
http://download.documentfoundation.org/libreoffice/stable/3.3.4/deb/x86/LibO-SDK_3.4rc3_Linux_x86_install-deb_en-US.tar.gz
Indeed - thanks for noticing.
ciao
Christian
--
Unsubscribe instructions: E-mail to website+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/website/
All messages sent to this list will be publicly archived and cannot be deleted
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.