From 23df1a774b5b70e5108e2d1b1901d2a204ca1d9e Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 11 Jun 2019 22:25:01 +0200 Subject: Fix/Cleanup: I18N: Bad usage of IFACE_ instead of TIP_. Cheap tip: anything that is not "Camel Case" and/or that is more than a few words long should use `TIP_` translation, not `IFACE_` one. Also added several missing strings (including the one reported in D5056 by Jean First (@robbott), thanks). --- source/blender/blenkernel/intern/pointcache.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'source/blender/blenkernel/intern/pointcache.c') diff --git a/source/blender/blenkernel/intern/pointcache.c b/source/blender/blenkernel/intern/pointcache.c index a55d0be4f95..2a64a50213c 100644 --- a/source/blender/blenkernel/intern/pointcache.c +++ b/source/blender/blenkernel/intern/pointcache.c @@ -4482,13 +4482,13 @@ void BKE_ptcache_update_info(PTCacheID *pid) /* smoke doesn't use frame 0 as info frame so can't check based on totpoint */ if (pid->type == PTCACHE_TYPE_SMOKE_DOMAIN && totframes) { - BLI_snprintf(cache->info, sizeof(cache->info), IFACE_("%i frames found!"), totframes); + BLI_snprintf(cache->info, sizeof(cache->info), TIP_("%i frames found!"), totframes); } else if (totframes && cache->totpoint) { - BLI_snprintf(cache->info, sizeof(cache->info), IFACE_("%i points found!"), cache->totpoint); + BLI_snprintf(cache->info, sizeof(cache->info), TIP_("%i points found!"), cache->totpoint); } else { - BLI_strncpy(cache->info, IFACE_("No valid data to read!"), sizeof(cache->info)); + BLI_strncpy(cache->info, TIP_("No valid data to read!"), sizeof(cache->info)); } return; } @@ -4499,10 +4499,10 @@ void BKE_ptcache_update_info(PTCacheID *pid) if (cache->totpoint > totpoint) { BLI_snprintf( - mem_info, sizeof(mem_info), IFACE_("%i cells + High Resolution cached"), totpoint); + mem_info, sizeof(mem_info), TIP_("%i cells + High Resolution cached"), totpoint); } else { - BLI_snprintf(mem_info, sizeof(mem_info), IFACE_("%i cells cached"), totpoint); + BLI_snprintf(mem_info, sizeof(mem_info), TIP_("%i cells cached"), totpoint); } } else { @@ -4514,7 +4514,7 @@ void BKE_ptcache_update_info(PTCacheID *pid) } } - BLI_snprintf(mem_info, sizeof(mem_info), IFACE_("%i frames on disk"), totframes); + BLI_snprintf(mem_info, sizeof(mem_info), TIP_("%i frames on disk"), totframes); } } else { @@ -4544,18 +4544,18 @@ void BKE_ptcache_update_info(PTCacheID *pid) BLI_snprintf(mem_info, sizeof(mem_info), - IFACE_("%s frames in memory (%s)"), + TIP_("%s frames in memory (%s)"), formatted_tot, formatted_mem); } if (cache->flag & PTCACHE_OUTDATED) { - BLI_snprintf(cache->info, sizeof(cache->info), IFACE_("%s, cache is outdated!"), mem_info); + BLI_snprintf(cache->info, sizeof(cache->info), TIP_("%s, cache is outdated!"), mem_info); } else if (cache->flag & PTCACHE_FRAMES_SKIPPED) { BLI_snprintf(cache->info, sizeof(cache->info), - IFACE_("%s, not exact since frame %i"), + TIP_("%s, not exact since frame %i"), mem_info, cache->last_exact); } -- cgit v1.2.3