Giter Club home page Giter Club logo

tatowiki's People

Contributors

allan-simon avatar jiru avatar qdii avatar trang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

undeadinu strogo

tatowiki's Issues

Impossible to provide new translation

I have no idea of what the real problem if or even if there is a problem but here is a message I received from GrizaLeono

Bien...
Allant à la page https://fr.wiki.tatoeba.org/art.../premiers-pas# j'ai remarqué que j'étais déjà actif, parce que au dessus de la page je voyais "se déconnecter".
J'ai cliqué sur "éditer" et j'ai traduit un bon bout de texte, tout en laissant le texte français - ce qui me permet de corriger plus facilement après.
Quand je devais donner à boire à mon épouse, j'ai cliqué sur "Sauvegarder et continuer".
Voulant continuer, on me demande de saluer. J'ai salué avec mes anciennes données.
En claquant sur "éditer" et "Esperanto", je vois des anciens textes...
J'espère que le travail, que j'ai déjà fait ne sera pas perdu...

The part when he was asked to enter credentials again is probably due to us restarting the wiki. However, I can't explain why his modifications are neither on the French page or the Esperanto page (because I'm not totally sure from where he translated). Does the "Save and continue" button is a temporary save not written in database? I've tested it and it doesn't seem so.

Maybe @trang or @jiru may have an idea?

Problems on the links

Doren (driini) reports the following:


I just translated the https://en.wiki.tatoeba.org/articles/show/contribute-audio2## into german: https://de.wiki.tatoeba.org/articles/show/audio_de##
But you can't see the English link at "Article available in:" on my german translated site. So you can't go directly to the existing English version.

She asked if it is because she named it instead of
https://de.wiki.tatoeba.org/articles/show/audioaufnahmen2##
https://de.wiki.tatoeba.org/articles/show/audio_de##

There are only two places which use this address:
https://de.wiki.tatoeba.org/articles/show/audioaufnahmen##
and
https://en.wiki.tatoeba.org/articles/show/contribute-audio2##

Single sign-on with Tatoeba

Here is a rough plan to allow having the same users/registration/login on Tatoeba and the wiki, based on cookie sharing:

  1. Disallow registration on the wiki.
  2. Manually match existing tatowiki users with existing Tatoeba users (we only have 242 tatowiki users so far, including invalid spammer accounts).
  3. Modify user ids in all the tables of tatowiki so that they are the same as Tatoeba’s user ids.
  4. On Tatoeba, upon login or registration, create an additional encrypted cookie containing id and username.
  5. On tatowiki, when accessing any page, check for the existence of that cookie. If that cookie is set and successfully decrypted, tatowiki automatically registers a new user if he doesn’t exist, and it automatically logs in the user if he’s not logged in.
  6. Make sure the session timeout of tatowiki is lower or equal than Tatoeba’s.
  7. On tatowiki, change the login link to point to the Tatoeba login page.

Another approach is to make tatowiki look up users from Tatoeba’s database. Users will still have to login separately, but they don’t have to register two times any more. It requires to:

  1. Disallow registration on the wiki.
  2. Modify user ids in all the other tables of tatowiki so that they are the same as Tatoeba’s user ids.
  3. Modify tatowiki’s password hashing algorithm to match Tatoeba’s (Tatoeba uses something pretty custom).
  4. Make tatowiki read users from the Tatoeba database (note that tatowiki is currently based on sqlite while Tatoeba uses MySQL).

Asterisks are not always displayed properly in links in the Wiki.

Screenshot

Screen Shot 2019-12-13 at 14 01 16

The code

### How do I search for "of" followed by words ending in "ing" without any intervening words?

 * [of NEAR/1 *ing -"*ing of"](https://tatoeba.org/eng/sentences/search?query=of+NEAR%2F1+*ing+-%22*ing+of%22&from=eng&to=none&user=&orphans=no&unapproved=no&has_audio=&tags=&list=&native=&trans_filter=limit&trans_to=und&trans_link=&trans_user=&trans_orphan=&trans_unapproved=&trans_has_audio=&sort=words&sort_reverse=)  Use the advanced search, sorting by "fewest words." 

It's on this page.

https://en.wiki.tatoeba.org/articles/show/text-search#how-do-i-search-for-%22of%22-followed-by-words-ending-

Include link to tatoeba.org in the page layout

Many pages of the wiki have something like "Go back to tatoeba.org" manually added in page content itself.

For instance: https://en.wiki.tatoeba.org/articles/show/faq

It's sometimes added at the top, sometimes at the bottom, sometimes both, sometimes not at all, sometimes with a different phrasing. It's very inconsistent. We should make it part of the layout.

I'm not sure what's the best way. I suggest just adding "tatoeba.org" after "Recent changes" in the menu.

# links to sections on wiki pages don't always work if pasted into comments.

The Problem

On a link like this, ...
https://en.wiki.tatoeba.org/articles/show/guidelines#do-not-change-sentences-that-are-correct.

... the final period gets filtered out and is not part of the link on tatoeba.org.

Note that the same thing happens here on GitHub.

Perhaps these are possible solutions.

  • Drop all final punctuation for such links in the wiki.

  • Don't filter out the final punctuation of links on tatoeba.org. This likely will cause problems, since many links will be followed by final punctuation when used in sentences on tatoeba.org, causing bad URLs.

Live Example

https://tatoeba.org/eng/sentences/show/33736#comment-1165051

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.