Remove developer

This commit is contained in:
HackerNCoder 2022-08-26 20:55:01 +02:00
parent c028ee5f7d
commit 88cbf89e77
6 changed files with 0 additions and 73 deletions

View file

@ -1,3 +0,0 @@
_model: developer
---
_discoverable: no

View file

@ -1,15 +0,0 @@
sort_key: 0
---
title: Extracting, converting, translating and reconverting Ren'Py games
---
body:
TODO: Add stuff about how to translate Ren'Py games
You need three tools: Ren'Py SDK, rpatool.py (or any other program that can unarchive rpa) and renpy-ttk
Ren'Py games use an archive.rpa, wherein most of the game actually is. I don't believe it is nessecarry to extract the game to make translations, but that's what I do anyways. Here I use rpatool.py. See it's documentation on how to use it.
Once that is done, run renpy-ttk and generate a pot file. Once it is done, the pot file is uploaded to weblate. If there already are translations (finished or not), it may be a good idea to use renpy-ttk to get the po files for them, and upload them to weblate. For new translations, if you have a common.rpy translation, use Ren'Py SDK to generate the translation, then replace the common and then generate a po file that can be uploaded to weblate, this saves the translators time.
To update the translations from weblate. Download the po file, run renpy-ttk and use the sensible option. That should be it. Note the caveat with renpy-ttk: *something something, don't extract after update?*

View file

@ -1,9 +0,0 @@
[model]
name = Developer page
label = Developer
hidden = yes
protected = yes
[children]
model = developer_obj
order_by = sort_key

View file

@ -1,21 +0,0 @@
[model]
name = Developer object
label = {{ this.name }}
_discoverable = no
[attachment]
order_by = _id
[fields.sort_key]
label = Sort order
type = sort_key
[fields.title]
label = Title
type = string
translate = True
[fields.body]
label = Body
type = markdown
translate = True

View file

@ -1,25 +0,0 @@
{% extends "layout.html" %}
{% block page %}
{% set objs = site.query('/developer').include_undiscoverable(true).all() %}
<!-- Projects-->
<section class="projects-section bg-light" id="projects">
<div class="container px-4 px-lg-5">
{% for obj in objs %}
{% set image = obj.attachments.images.first() %}
<!-- Project One Row-->
<div class="row gx-0 mb-5 mb-lg-0 justify-content-end">
<div class="col-lg-6">
<div class="bg-black text-center h-100 project">
<div class="d-flex h-100">
<div class="project-text w-100 my-auto text-center text-lg-left text-white">
<h4>{{ obj.title }}</h4>
{{ obj.body }}
</div>
</div>
</div>
</div>
</div>
{% endfor %}
</div>
</section>
{% endblock %}