FeministWiki:Technical documentation: Difference between revisions

    Line 164: Line 164:
    To add a new language, follow these steps:
    To add a new language, follow these steps:


    * Clone the English wiki's database into a new one via: {{C|mysqldump feministwiki | mysql feministwiki_xy}}
    * Clone the English wiki's database into a new one via: {{C|mysqldump feministwiki <nowiki>|</nowiki> mysql feministwiki_xy}}
    * Grant permissions on the new database via: {{C|GRANT ALL ON feministwiki_xy.* TO feministwiki@localhost;}}
    * Grant permissions on the new database via: {{C|GRANT ALL ON feministwiki_xy.* TO feministwiki@localhost;}}
    * Edit {{C|/etc/apache2/sites-available/000-wiki.conf}} to add the line: {{C|Use Wiki xy}}
    * Edit {{C|/etc/apache2/sites-available/000-wiki.conf}} to add the line: {{C|Use Wiki xy}}
    * Add the language to {{C|~/bin/fw-update-languages.sh}} and run it
    * Add the language to {{C|~/bin/fw-update-languages.sh}} and run it


    The last step will produce a lot of errors due to primary key constraints; these are fine. (The script tries to add every language to every language's database every time it's run.)
    The last step will produce a lot of errors complaining about keys already existing; these can be safely ignored.


    The domain names feministwiki.de and www.feministwiki.de redirect to {{C|https://feministwiki.org/de}}.  For instance, requesting {{C|https://feministwiki.de/wiki/Hauptseite}} will result in an HTTP redirect to {{C|https://feministwiki.org/de/wiki/Hauptseite}}.
    The domain names feministwiki.de and www.feministwiki.de redirect to {{C|https://feministwiki.org/de}}.  For instance, requesting {{C|https://feministwiki.de/wiki/Hauptseite}} will result in an HTTP redirect to {{C|https://feministwiki.org/de/wiki/Hauptseite}}.