Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change patchouli book text into lang file #83

Open
wants to merge 8 commits into
base: 1.20.2
Choose a base branch
from

Conversation

nageih
Copy link

@nageih nageih commented Nov 12, 2023

I'm a Chinese translator,and I am translating this mod,this can make translating patchouli book easier

@MattiDragon
Copy link
Owner

Did you check that this works? I don't see anything in the patchouli docs about using translation strings for page content. Also, if it does work, give the strings descriptive names. For example book.extended_drawers.patchouli.text1 could be book.extended_drawers.category.blocks.name as that describes what it actutally means. Another thing is that you seem to have only converted some text areas, not all of them. If we are going to move this book to translation strings I want to be able to delete the language specific pages, at least when the layout is the same.

@nageih
Copy link
Author

nageih commented Nov 19, 2023

ok,I`ll change them tomorrow, and you can see using translation string in here

nageih and others added 2 commits November 20, 2023 21:12
Co-Authored-By: 3093FengMing <83573615+3093fengming@users.noreply.github.com>
@nageih
Copy link
Author

nageih commented Nov 20, 2023

@MattiDragon I have finished improving these key

@MattiDragon
Copy link
Owner

Seems good. One last thing to check: have you checked that patchouli macros work in translation strings? If they do you should see links and colors in some pages.

@nageih
Copy link
Author

nageih commented Nov 20, 2023

As I see, it works.

@nageih
Copy link
Author

nageih commented Nov 20, 2023

and I'm translating the mod,later I'll create a Chinese translation

@MattiDragon
Copy link
Owner

I was going to test this and noticed an issue. You can't use the $ in a lang file in extended drawers because the gradle templating I use for the dynamic version thinks it's a template string. You have to migrate all of the pages to use my @ based macros (which they should have been using from the start). You can view and edit the definitions in the book.json. Also I'd like if you removed the .text from translation keys for pages that aren't just text. If the page has multiple strings then you can do that, but for most it's enough to just have the text in the pages own string.

@nageih
Copy link
Author

nageih commented Dec 1, 2023

@MattiDragon I pushed a commit just now to try to fix $ problem,and because I don't know the macros in patchouli book well,I use a silly way to solve that,and tomorrow I will change the key name including text .Also I think <> is more aesthetically pleasing than @@, I can change it back if you prefer @@

@MattiDragon MattiDragon added documentation Improvements or additions to documentation mod compatablity Relates to a compatibility with some other mod on hold This issue is too complicated or waiting on something labels Dec 9, 2023
@MattiDragon
Copy link
Owner

I'll have to let this wait for now. Patchouli hasn't been updated past 1.20.1 and I won't spend time trying to get your changes on older versions to test with before it updates.

@nageih
Copy link
Author

nageih commented Dec 9, 2023

that's good

@nageih
Copy link
Author

nageih commented Jul 29, 2024

I think this pr should be discussed now. @MattiDragon

@MattiDragon
Copy link
Owner

I don't see a 1.21 release anywhere. I probably won't be updating the 1.20.6 version due to lack of demand

@MattiDragon
Copy link
Owner

Tbh, I'll probably just switch to lavender at this point. Patchouli just updates too slowly

@nageih
Copy link
Author

nageih commented Jul 29, 2024

I apologize that this pr has been delayed due to my delays. I just realized that it seems that version 1.20.1 is no longer being maintained, so I can try to move this pr to a higher version if you want

@MattiDragon
Copy link
Owner

The PR hasn't been delayed by you, it's been delayed by patchouli not updating to versions before I drop support for them. I'm right now considering switching to lavender, although as far as I'm aware that doesn't support translations by lang file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation mod compatablity Relates to a compatibility with some other mod on hold This issue is too complicated or waiting on something
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants