veloren/common
juliancoffee 18e507315f Add ItemDesc::l10n method
- Add ItemL10n struct that is similar to ItemImgs except it holds i18n
  description and not items. ItemDesc::l10n uses this struct to provide
  common_i18n::Content for both names and descriptions.
  So far it only used in voxygen, but it can be used by rtsim in
  dialogues.
- Introduced new deprecation, ItemKind::Ingredient, because it uses
  item.name().
  It's not deleted, because it's used in inventory sorting, and our
  inventory sorting is, for some reason, server-side.
- Crafting UI also still uses deprecated item.name(), because again,
  sorting. It's probably will be easier to handle, because it's UI
  sorting and we can use localized names here, but still, it's a thing
  to discuss.
- Moved Item::describe() to voxygen/hud/util.

The most important thing to note is we don't want to completely delete
deprecated .name() and .description() along with corresponding fields
in ItemDef because ItemDef is now "public" API, exposed in plugins and I
don't want to break plugins before we actually implement i18n for them.
Otherwise, it would be basically impossible to use items in plugins.

What's left is actually fully implementing ItemDesc::l10n, create
item_l10n.ron and add fallback on current .name() and .description()
implementation.
2024-01-14 21:25:15 +02:00
..
assets Fix veloren-server compilation 2024-01-08 20:13:17 +02:00
base use workspace dependencies to make our life easier maintaining them :) 2023-05-10 18:16:25 +02:00
benches Linearize light colors on the CPU 2023-10-14 18:10:35 +00:00
dynlib Don't overwrite loaded dynlib 2023-10-14 16:25:55 -04:00
ecs use workspace dependencies to make our life easier maintaining them :) 2023-05-10 18:16:25 +02:00
frontend add a log for each person accessing the chat api 2023-10-18 13:05:22 +02:00
i18n Discourage random i18n and prettify get_content 2024-01-14 21:25:15 +02:00
net Fixed warnings 2023-10-21 13:51:41 +01:00
src Add ItemDesc::l10n method 2024-01-14 21:25:15 +02:00
state Fix veloren-server compilation 2024-01-08 20:13:17 +02:00
systems Don't stack buffs of the same kind with equal attributes 2024-01-13 18:58:44 +01:00
build.rs Removed existing LFS check 2023-01-18 22:31:33 +00:00
Cargo.toml Add veloren-common-i18n 2024-01-14 21:25:15 +02:00